Created
February 6, 2020 07:44
-
-
Save mhemrg/989084a63c2eb0835cf3d7e9186e7b8a to your computer and use it in GitHub Desktop.
Django Logger Settings
This file contains hidden or 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
| { | |
| 'version': 1, | |
| 'disable_existing_loggers': False, | |
| 'formatters': { | |
| 'verbose': { | |
| 'format': ('%(asctime)s [%(process)d] [%(levelname)s] ' + | |
| 'pathname=%(pathname)s lineno=%(lineno)s ' + | |
| 'funcname=%(funcName)s %(message)s'), | |
| 'datefmt': '%Y-%m-%d %H:%M:%S' | |
| }, | |
| 'simple': { | |
| 'format': '%(levelname)s %(message)s' | |
| } | |
| }, | |
| 'handlers': { | |
| 'null': { | |
| 'level': 'DEBUG', | |
| 'class': 'logging.NullHandler', | |
| }, | |
| 'console': { | |
| 'level': 'DEBUG', | |
| 'class': 'logging.StreamHandler', | |
| 'formatter': 'verbose' | |
| } | |
| }, | |
| 'loggers': { | |
| 'testlogger': { | |
| 'handlers': ['console'], | |
| 'level': 'INFO', | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment