-
Notifications
You must be signed in to change notification settings - Fork 19
/
log_cfg.json
44 lines (44 loc) · 1.25 KB
/
log_cfg.json
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
{
"version": 1,
"handlers": {
"standard": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "json",
"filters": ["context_filter"]
}
},
"filters": {
"context_filter": {
"()": "proxy.common_neon.utils.json_logger.ContextFilter"
}
},
"formatters": {
"json": {
"format": "%(message)s",
"class": "proxy.common_neon.utils.json_logger.JSONFormatter"
},
"standard": {
"format": "%(asctime)s.%(msecs)03d %(levelname)-.1s %(filename)s:%(lineno)d %(process)d %(name)s:%(class)s %(context)s %(message)s",
"style": "%",
"datefmt": "%Y-%m-%d %H:%M:%S"
},
"root": {
"format": "%(asctime)s.%(msecs)03d %(levelname)-.1s %(filename)s:%(lineno)d %(process)d %(name)s:Undefined %(context)s %(message)s",
"style": "%",
"datefmt": "%Y-%m-%d %H:%M:%S"
}
},
"loggers": {
"proxy": {
"level": "DEBUG",
"handlers": ["standard"],
"propagate": false
},
"": {
"level": "INFO",
"handlers": ["standard"],
"propagate": false
}
}
}