-
Notifications
You must be signed in to change notification settings - Fork 3
/
logging.ini
42 lines (33 loc) · 904 Bytes
/
logging.ini
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
[loggers]
keys = root
[handlers]
keys = logfileHandler,syslogHandler,consoleHandler
[formatters]
keys = simpleformatter,logfileformatter
[logger_root]
level = DEBUG
handlers = logfileHandler,syslogHandler
[handler_logfileHandler]
class = handlers.TimedRotatingFileHandler
level = DEBUG
args = ('spc-eyepi.log','midnight')
formatter = logfileformatter
[handler_syslogHandler]
class = handlers.SysLogHandler
args=('/dev/log',)
level = DEBUG
formatter = simpleformatter
;[handler_kmsgHandler]
;class = logging.FileHandler
;level = INFO
;args = ('/dev/kmsg','w',)
;formatter = simpleformatter
[handler_consoleHandler]
class = StreamHandler
level = DEBUG
formatter = simpleformatter
args = (sys.stdout,)
[formatter_logfileformatter]
format = %(asctime)s %(levelname)s [%(name)s.%(funcName)s:%(lineno)d] %(message)s
[formatter_simpleformatter]
format = %(name)s - %(levelname)s: %(message)s