forked from samose-kachori/Quillpad-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logsystem.conf
executable file
·56 lines (42 loc) · 1009 Bytes
/
logsystem.conf
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
[loggers]
keys=root,datacollector,mailcollector
[handlers]
keys=default,datahandler,mailhandler
[formatters]
keys=default,onlymessage,mailformat
[logger_root]
level=INFO
handlers=default
[logger_datacollector]
level=INFO
handlers=datahandler
propagate=0
qualname=data.collector
[logger_mailcollector]
leve=INFO
handlers=mailhandler
propagate=0
qualname=mail.collector
[handler_default]
class=FileHandler
level=INFO
formatter=default
args=('logs/quill.log', 'a')
[handler_datahandler]
class=handlers.TimedRotatingFileHandler
level=INFO
formatter=onlymessage
args=('logs/data.log', 'midnight')
[handler_mailhandler]
class=handlers.TimedRotatingFileHandler
level=INFO
formatter=mailformat
args=('logs/mail.log', 'midnight')
[formatter_default]
format=%(asctime)s %(name)-12s %(levelname)-8s %(message)s
datefmt=%m-%d %H:%M
[formatter_onlymessage]
format=%(message)s
[formatter_mailformat]
format=%(asctime)-8s %(message)s
datefmt=%m-%d %H:%M