Created
May 18, 2013 13:11
-
-
Save nigma/5604364 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
#-*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import sys | |
import logging | |
logging.captureWarnings(True) | |
LOGGING = { | |
"version": 1, | |
"disable_existing_loggers": False, | |
"root": { | |
"level": "INFO", | |
"handlers": ["console"], | |
}, | |
"formatters": { | |
"console": { | |
"format": "%(asctime)s - %(levelname)-5s [%(name)s:%(lineno)s] %(message)s", | |
"datefmt": "%H:%M:%S" | |
} | |
}, | |
"handlers": { | |
"console": { | |
"level": "DEBUG", | |
"class": "logging.StreamHandler", | |
"formatter": "console", | |
"stream": sys.stderr | |
}, | |
}, | |
"loggers": { | |
"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