Created
August 25, 2016 06:45
-
-
Save recall704/0c4ed52ccd908ea6c2ba39c30d42d3fc to your computer and use it in GitHub Desktop.
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
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': True, | |
'formatters': { | |
'simple': { | |
'format': '[%(asctime)s]-[%(lineno)d]-%(levelname)s : %(message)s' | |
}, | |
'verbose': { | |
'format': '[%(asctime)s]-[%(lineno)d-%(funcName)s]-%(levelname)s : %(message)s' | |
}, | |
}, | |
'handlers': { | |
'null': { | |
'level': 'DEBUG', | |
'class': 'django.utils.log.NullHandler', | |
'formatter': 'simple', | |
}, | |
'console': { | |
'level': 'INFO', | |
'class': 'logging.StreamHandler', | |
'formatter': 'verbose', | |
}, | |
'file': { | |
'level': 'INFO', | |
'class': 'logging.FileHandler', | |
'formatter': 'simple', | |
'filename': os.path.join(PROJECT_ROOT, 'logs/all.log'), | |
'mode': 'a', | |
}, | |
}, | |
'loggers': { | |
'django': { | |
'handlers': ['file', 'console'], | |
'level':'INFO', | |
'propagate': True, | |
}, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment