-
Notifications
You must be signed in to change notification settings - Fork 2
/
logging-cfg-ci.yml
53 lines (48 loc) · 1.22 KB
/
logging-cfg-ci.yml
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
52
53
version: 1
disable_existing_loggers: False # this allow to get logger at module level
root:
handlers:
- console
level: DEBUG
propagate: True
# Remove all handlers for werkzeug log entries - prevents duplicated logging
loggers:
werkzeug:
handlers: []
gunicorn.error:
level: DEBUG
handlers:
- console
gunicorn.access:
level: DEBUG
handlers:
- console
filters:
isotime:
(): logging_utilities.filters.TimeAttribute
isotime: False
utc_isotime: True
flask:
(): logging_utilities.filters.flask_attribute.FlaskRequestAttribute
attributes:
- path
- method
- headers
- remote_addr
- json
formatters:
standard:
(): logging_utilities.formatters.extra_formatter.ExtraFormatter
format: "[%(asctime)s] %(levelname)-8s - %(name)-26s : %(message)s"
verbose:
(): logging_utilities.formatters.extra_formatter.ExtraFormatter
format: "[%(asctime)s] %(levelname)-8s - %(name)-26s : %(message)s"
extra_fmt: " : path=%(request_path)s headers=%(request_headers)s payload=%(request_json)s"
handlers:
console:
class: logging.StreamHandler
formatter: standard
stream: ext://sys.stdout
filters:
- isotime
- flask