add file logging to /var/log/coinmanager/coinmanager.log and additional output to /var/log/apache2/error.log via wsgi.info

This commit is contained in:
willi pink 2022-07-08 13:13:53 +02:00
parent effbd4c7fe
commit 39179f5277

View File

@ -133,3 +133,22 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': '/var/log/coinmanager/coinmanager.log',
},
},
'loggers': {
'django': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': True,
},
},
}