-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging_config.yaml
49 lines (46 loc) · 1.07 KB
/
logging_config.yaml
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
version: 1
formatters:
console:
format: '%(message)s'
simple:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
detail:
format: '%(asctime)s - %(levelname)s - File: %(filename)s - %(funcName)s() - Line: %(lineno)d - %(message)s'
loggers:
all:
handlers: [all]
propagate: true
warn:
handlers: [warn]
propagate: true
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: console
stream: ext://sys.stdout
all:
class: logging.handlers.TimedRotatingFileHandler
level: INFO
formatter: simple
when: W0
backupCount: 4
filename: /var/log/traversal/all.log
debug:
class: logging.handlers.TimedRotatingFileHandler
level: DEBUG
formatter: detail
when: W0
backupCount: 4
filename: /var/log/traversal/debug.log
warn:
class: logging.handlers.TimedRotatingFileHandler
level: WARNING
formatter: detail
when: W0
backupCount: 4
filename: /var/log/traversal/warn.log
root:
level: DEBUG
handlers: [console, all, warn, debug]
propagate: true