Created
June 10, 2020 06:29
-
-
Save olivergeorge/b8d3296a79eb508d190ded7316252b61 to your computer and use it in GitHub Desktop.
Log Django Queries
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': True, | |
'formatters': { | |
'verbose': { | |
'format': '%(levelname)s %(asctime)s %(module)s ' | |
'%(process)d %(thread)d %(message)s' | |
}, | |
}, | |
'handlers': { | |
'console': { | |
'level': 'DEBUG', | |
'class': 'logging.StreamHandler', | |
'formatter': 'verbose' | |
} | |
}, | |
'loggers': { | |
'imas': { | |
'level': 'DEBUG', | |
'handlers': ['console'], | |
'propagate': False, | |
}, | |
'django.db.backends': { | |
'level': 'DEBUG', | |
'handlers': ['console'], | |
'propagate': False, | |
}, | |
}, | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment