Created
December 8, 2018 21:23
-
-
Save arielsvn/2ce1c13f32ad2b621d8496e788aa3ddb to your computer and use it in GitHub Desktop.
Quickly setup SQL query logging - django
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': False, | |
'handlers': { | |
'console': { | |
'level': 'DEBUG', | |
'class': 'logging.StreamHandler', | |
} | |
}, | |
'loggers': { | |
'django.db.backends': { | |
'handlers': ['console'], | |
'level': 'DEBUG', | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source https://coderwall.com/p/uzhyca/quickly-setup-sql-query-logging-django