-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
logging.cfg
78 lines (63 loc) · 1.98 KB
/
logging.cfg
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
# In order to change the logging configuration, make a copy of this file and save it as 'logging.custom.cfg'
# Then the TerrariumPI logger will update the default logging values with your custom logging settings
[loggers]
keys=root,webserver,meross
[handlers]
keys=consoleHandler,fileHandler,fileHandlerDebug,syslogHandler,webserverHandler,notificationHandler,devNull
[formatters]
keys=simpleFormatter,webFormatter
[logger_root]
level=DEBUG
# More information at https://github.com/theyosh/TerrariumPI/wiki/FAQ/#change-logging
# Add fileHandlerDebug to handlers to enable debug logging
# Add syslogHandler to handlers to enable syslog logging.
handlers=consoleHandler,fileHandler,notificationHandler
[logger_webserver]
level=INFO
handlers=webserverHandler
qualname=geventwebsocket
propagate=0
[logger_meross]
level=INFO
qualname=meross_iot
propagate=0
#handlers=fileHandlerDebug
handlers=devNull
[handler_consoleHandler]
class=StreamHandler
level=WARNING
formatter=simpleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=terrariumLogging.TimedCompressedRotatingFileHandler
level=INFO
formatter=simpleFormatter
args=('log/terrariumpi.log','midnight',1,30)
[handler_fileHandlerDebug]
class=terrariumLogging.TimedCompressedRotatingFileHandler
level=DEBUG
formatter=simpleFormatter
args=('log/terrariumpi.debug.log','midnight',1,30)
[handler_devNull]
class=logging.NullHandler
[handler_syslogHandler]
class=logging.handlers.SysLogHandler
level=INFO
formatter=simpleFormatter
# Use '/dev/log' for local syslog. For remote use ('hostip',portnr)
args=('/dev/log','local6')
[handler_webserverHandler]
class=terrariumLogging.TimedCompressedRotatingFileHandler
level=INFO
formatter=webFormatter
args=('log/terrariumpi.access.log','midnight',1,30)
[handler_notificationHandler]
class=terrariumLogging.NotificationLogger
level=WARNING
formatter=simpleFormatter
[formatter_simpleFormatter]
format=%(asctime)s - %(levelname)-7s - %(name)-21s - %(message)s
datefmt=
[formatter_webFormatter]
format=%(message)s
datefmt=