-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlogging_config.yaml
More file actions
51 lines (42 loc) · 1003 Bytes
/
logging_config.yaml
File metadata and controls
51 lines (42 loc) · 1003 Bytes
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
51
version: 1
formatters:
default:
format: "[%(asctime)s][%(levelname)s][request_id=%(request_id)s][correlation_id=%(correlation_id)s] %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
(): logger.formatter.CustomFormatter
http_formatter:
format: "[%(asctime)s][%(levelname)s][request_id=%(request_id)s][correlation_id=%(correlation_id)s] host=%(host)s method=%(method)s path=%(path)s %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
(): logger.formatter.CustomFormatter
handlers:
default:
class: logging.StreamHandler
formatter: default
http_handler:
class: logging.StreamHandler
formatter: http_formatter
root:
level: INFO
handlers:
- default
loggers:
app:
level: INFO
handlers:
- default
propagate: 0
logger.http:
level: INFO
handlers:
- http_handler
propagate: 0
werkzeug:
level: INFO
handlers:
- default
propagate: 0
requests:
level: INFO
handlers:
- default
propagate: 0