Created
October 25, 2021 19:07
-
-
Save FoamyGuy/b4d46793548de61e1d834521d2a2bcb4 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': False, | |
'formatters': { | |
"timestamped": { | |
'format': '%(asctime)s %(name)-12s %(levelname)-8s %(message)s', | |
} | |
}, | |
'handlers': { | |
'console': { | |
'level': 'WARNING', | |
'class': 'logging.StreamHandler', | |
}, | |
'file': { | |
'level': 'DEBUG', | |
'class': 'logging.FileHandler', | |
'formatter': 'timestamped', | |
'filename': os.path.join(BASE_DIR, 'logs', 'casalume-%s' % timezone.now().date()), | |
}, | |
}, | |
'loggers': { | |
'django': { | |
'handlers': ['file', 'console'], | |
'level': 'DEBUG', | |
'propagate': True, | |
}, | |
'': { | |
'handlers': ['file', 'console'], | |
'level': 'DEBUG', | |
'propagate': True, | |
}, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment