-
Notifications
You must be signed in to change notification settings - Fork 5
/
logging.yaml
110 lines (92 loc) · 3.21 KB
/
logging.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# logging.yaml file for use with pool_control_master_db version 3.5.1
# 2019-03-03
version: 1
disable_existing_loggers: False
formatters:
standard:
format: '%(asctime)s - %(name)2s:%(lineno)s - %(funcName)3s: %(levelname)3s %(message)s'
error:
format: "%(levelname)s <PID %(process)d:%(processName)s> %(name)s.%(funcName)s(): %(message)s"
handlers:
console:
class: logging.StreamHandler
formatter: standard
stream: ext://sys.stdout
info_file_handler:
class: logging.handlers.RotatingFileHandler
level: INFO
formatter: standard
filename: /var/log/pool_control/info.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
error_file_handler:
class: logging.handlers.RotatingFileHandler
level: ERROR
formatter: error
filename: /var/log/pool_control/errors.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
debug_file_handler:
class: logging.handlers.RotatingFileHandler
level: DEBUG
formatter: standard
filename: /var/log/pool_control/debug.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
critical_file_handler:
class: logging.handlers.RotatingFileHandler
level: CRITICAL
formatter: standard
filename: /var/log/pool_control/critical.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
warning_file_handler:
class: logging.handlers.RotatingFileHandler
level: WARNING
formatter: standard
filename: /var/log/pool_control/warning.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
notification_file_handler:
class: logging.handlers.RotatingFileHandler
formatter: standard
filename: /var/log/pool_control/notifications_db.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
use_database_file_handler:
class: logging.handlers.RotatingFileHandler
formatter: standard
filename: /var/log/pool_control/use_database.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
pool_control_master_db_handler:
class: logging.handlers.RotatingFileHandler
formatter: standard
filename: /var/log/pool_control/pool_control_master_db.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
root:
level: NOTSET
handlers:
propogate: no
loggers:
__main__:
# level: DEBUG
handlers: [console, info_file_handler, error_file_handler, critical_file_handler, debug_file_handler, warning_file_handler, pool_control_master_db_handler]
propogate: no
notifications_db:
# level: DEBUG
handlers: [info_file_handler, error_file_handler, critical_file_handler, debug_file_handler, warning_file_handler, notification_file_handler]
propogate: yes
use_database:
# level: DEBUG
handlers: [console, info_file_handler, error_file_handler, critical_file_handler, debug_file_handler, warning_file_handler, use_database_file_handler]
propogate: yes