Browse Source

Added new loggers settings

Yann Weber 9 years ago
parent
commit
f1a9a7d520
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      Lodel/settings/defaults.py

+ 14
- 0
Lodel/settings/defaults.py View File

@@ -29,10 +29,19 @@ ALLOWED_HOSTS = []
29 29
 LOGGING = {
30 30
     'version': 1,
31 31
     'disable_existing_loggers': False,
32
+    'formatters': {
33
+        'verbose': {
34
+            'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s',
35
+        },
36
+        'simple': {
37
+            'format': '%(levelname)s %(module)s %(funcName)s %(message)s',
38
+        },
39
+    },
32 40
     'handlers': {
33 41
         'console': {
34 42
             'class': 'logging.StreamHandler',
35 43
             'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
44
+            'formatter': 'simple',
36 45
         },
37 46
     },
38 47
     'loggers': {
@@ -46,6 +55,11 @@ LOGGING = {
46 55
             'level': 'DEBUG',
47 56
             'propagate': True,
48 57
         },
58
+        'EditorialModel' : {
59
+            'handlers': ['console'],
60
+            'propagate': True,
61
+            'level': 'DEBUG',
62
+        },
49 63
     },
50 64
 }
51 65
 

Loading…
Cancel
Save