Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOGGING = {
- 'handlers': {
- 'console':{
- 'level':'DEBUG',
- 'class':'logging.StreamHandler',
- 'formatter': 'simple'
- 'custom': {
- 'level': 'DEBUG',
- 'class': 'logging.FileHandler',
- 'filename': '/opt/logs/custom.log'
- },
- },
- 'loggers': {
- 'custom': {
- 'handlers': ['custom'],
- 'level': 'DEBUG',
- 'propagate': True,
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement