-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.conf
More file actions
35 lines (28 loc) · 742 Bytes
/
logging.conf
File metadata and controls
35 lines (28 loc) · 742 Bytes
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
[loggers]
keys = root
[logger_root]
level = NOTSET
handlers = consoleHandler, rotatingHandler, pushoverHandler
[formatters]
keys = default
[formatter_default]
format = %(asctime)s, %(name)s (%(levelname)s):%(bot)s %(message)s
datefmt = %Y-%m-%d %H:%M:%S
class = emross.utility.base.BotFormatter
[handlers]
keys = consoleHandler, rotatingHandler, pushoverHandler
[handler_consoleHandler]
class = StreamHandler
level = INFO
formatter = default
args = (sys.stdout,)
[handler_rotatingHandler]
class = handlers.RotatingFileHandler
level = INFO
formatter = default
args = ('build/emross.log', 'a', 52428800, 7)
[handler_pushoverHandler]
class = emross.utility.base.PushoverLogHandler
level = WARNING
formatter = default
args = (sys.stdout,)