summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/settings.py b/settings.py
index c007867..a844324 100644
--- a/settings.py
+++ b/settings.py
@@ -155,7 +155,20 @@ INSTALLED_APPS = (
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
+ 'formatters': {
+ 'verbose': {
+ 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
+ },
+ 'simple': {
+ 'format': '%(levelname)s %(message)s'
+ },
+ },
'handlers': {
+ 'console':{
+ 'level':'DEBUG',
+ 'class':'logging.StreamHandler',
+ 'formatter': 'simple'
+ },
'mail_admins': {
'level': 'ERROR',
'class': 'django.utils.log.AdminEmailHandler'
@@ -163,7 +176,7 @@ LOGGING = {
},
'loggers': {
'django.request': {
- 'handlers': ['mail_admins'],
+ 'handlers': ['mail_admins', 'console'],
'level': 'ERROR',
'propagate': True,
},