-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlogging.conf
50 lines (39 loc) · 908 Bytes
/
logging.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[loggers]
keys=root, gunicorn.error, gunicorn.access
[handlers]
keys=console, access_file
[formatters]
keys=json, json_access
[logger_root]
level=DEBUG
handlers=console
[logger_gunicorn.error]
level=ERROR
handlers=console
propagate=0
qualname=gunicorn.error
[logger_gunicorn.access]
level=INFO
handlers=access_file
propagate=0
qualname=gunicorn.access
[handler_console]
class=StreamHandler
formatter=json
args=(sys.stdout, )
[handler_access_file]
class=StreamHandler
formatter=json
args=(sys.stdout, )
[handler_null_file]
class=logging.FileHandler
formatter=json_access
args=('/dev/null', )
[formatter_json]
format=%(name)s %(level)s %(message)s %(type)s %(timestamp)s
datefmt=%Y-%m-%dT%H:%M:%S%z
class=CustomJsonFormatter.CustomJsonFormatter
[formatter_json_access]
format=%(asctime)s %(name)s %(levelname)s %(message)s
datefmt=%Y-%m-%dT%H:%M:%S%z
class=pythonjsonlogger.jsonlogger.JsonFormatter