Dalsi upravy loggeru ...

This commit is contained in:
Tomas Gavenciak 2015-10-25 12:43:12 +01:00
parent e0430aad7c
commit d646c88c0c
3 changed files with 9 additions and 1 deletions

View file

@ -190,7 +190,7 @@ except:
LOGGING = { LOGGING = {
'version': 1, 'version': 1,
'disable_existing_loggers': True, 'disable_existing_loggers': False,
'formatters': { 'formatters': {
'verbose': { 'verbose': {
@ -199,6 +199,12 @@ LOGGING = {
}, },
'loggers': { 'loggers': {
'django': {
'handlers': ['console'],
'level': 'DEBUG',
},
# Catch-all logger # Catch-all logger
'': { '': {
'handlers': ['console'], # Add 'mail_admins' in prod and test 'handlers': ['console'], # Add 'mail_admins' in prod and test

View file

@ -63,5 +63,6 @@ CSRF_COOKIE_SECURE = True
# LOGGING # LOGGING
LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins'] LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins']
LOGGING['loggers']['django']['handlers'] = ['console', 'mail_admins']

View file

@ -61,6 +61,7 @@ CSRF_COOKIE_SECURE = True
# LOGGING # LOGGING
LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins'] LOGGING['loggers']['']['handlers'] = ['console', 'mail_admins']
LOGGING['loggers']['django']['handlers'] = ['console', 'mail_admins']