Created
November 24, 2015 11:54
-
-
Save Znack/921d79d14d9acb4f4022 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGGING = { | |
"version": 1, | |
"disable_existing_loggers": False, | |
"filters": { | |
"require_debug_false": { | |
"()": "django.utils.log.RequireDebugFalse" | |
} | |
}, | |
"handlers": { | |
"mail_admins": { | |
"level": "ERROR", | |
"filters": ["require_debug_false"], | |
"class": "django.utils.log.AdminEmailHandler" | |
}, | |
"log_uploading_in_file": { | |
'class': 'logging.handlers.WatchedFileHandler', | |
'filename': '/opt/python/log/mockingbird-project.log' | |
} | |
}, | |
"loggers": { | |
"django.request": { | |
"handlers": ["mail_admins"], | |
"level": "ERROR", | |
"propagate": True, | |
}, | |
'django.db.backends': { | |
'handlers': None, # Quiet by default! | |
'propagate': False, | |
'level': 'DEBUG', | |
}, | |
'core': { | |
'handlers': ['log_uploading_in_file'], | |
'level': 'DEBUG', | |
'propagate': False, | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment