sets daily rotating log files

sync3
Laurent 5 months ago
parent be260c0496
commit 26ee2e49d0
  1. 7
      padelclub_backend/settings.py

@ -189,8 +189,11 @@ LOGGING = {
},
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': os.path.join(BASE_DIR, 'django.log'),
'class': 'logging.handlers.TimedRotatingFileHandler',
'filename': os.path.join(BASE_DIR, 'logs', 'django.log'),
'when': 'midnight',
'interval': 1,
'backupCount': 30,
'formatter': 'verbose',
},
'rotating_file': {

Loading…
Cancel
Save