-
Notifications
You must be signed in to change notification settings - Fork 1
/
logging.yml
70 lines (61 loc) · 1.75 KB
/
logging.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: 1
disable_existing_loggers: no
filters:
elapsed_filter:
(): seiso.common.logging.ElapsedFilter
formatters:
console_format:
format: "%(elapsed)s %(levelname)s %(message)s"
file_format:
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
handlers:
console_handler:
class: logging.StreamHandler
level: INFO
formatter: console_format
stream: ext://sys.stdout
filters: [elapsed_filter]
debug_log_handler:
class: logging.handlers.TimedRotatingFileHandler
when: midnight
level: DEBUG
formatter: file_format
filename: {{log-path}}/debug.log
encoding: utf8
bare_log_handler:
class: logging.handlers.TimedRotatingFileHandler
when: midnight
level: INFO
formatter: file_format
filename: {{log-path}}/bare.log
encoding: utf8
promus_update_log_handler:
class: logging.handlers.TimedRotatingFileHandler
when: midnight
level: INFO
formatter: file_format
filename: {{log-path}}/promus_updates.log
encoding: utf8
oai_log_handler:
class: logging.handlers.TimedRotatingFileHandler
when: W0
level: INFO
formatter: file_format
filename: {{log-path}}/oai.log
encoding: utf8
root:
level: NOTSET
handlers: [console_handler, debug_log_handler]
loggers:
seiso.services.bare:
level: DEBUG
handlers: [bare_log_handler]
seiso.common.bare_record:
level: DEBUG
handlers: [bare_log_handler]
promus_update_logger:
level: DEBUG
handlers: [promus_update_log_handler]
seiso.services.oai:
level: INFO
handlers: [oai_log_handler]