-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathlog_config.yaml
More file actions
43 lines (43 loc) · 1.07 KB
/
log_config.yaml
File metadata and controls
43 lines (43 loc) · 1.07 KB
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
---
version: 1
disable_existing_loggers: false
formatters:
complete:
datefmt: '%Y-%m-%d %H:%M:%S'
format: '%(levelname)s - %(asctime)s - %(module)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: complete
stream: ext://sys.stdout
full_log_file:
class: logging.handlers.RotatingFileHandler
level: DEBUG
formatter: complete
filename: log/full.log
encoding: utf-8
mode: a
maxBytes: 10485760 # 10 MB
backupCount: 10
main_log_file:
class: logging.handlers.RotatingFileHandler
level: INFO
formatter: complete
filename: log/main.log
encoding: utf-8
mode: a
maxBytes: 10485760 # 10 MB
backupCount: 10
loggers:
maze_cli:
level: DEBUG
handlers: [full_log_file, console]
propagate: yes
MainAction:
level: INFO
handlers: [main_log_file, full_log_file, console]
propagate: no
root:
level: DEBUG
handlers: [console]