forked from cmsdaq/merger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logFormat.conf
48 lines (38 loc) · 1021 Bytes
/
logFormat.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
[loggers]
keys = root, Merger
[handlers]
keys = consoleHandler, syslogHandler, fileHandler
[formatters]
keys = simpleFormatter, detailedFormatter, syslogFormatter
[logger_root]
level = DEBUG
handlers = syslogHandler
[logger_Merger]
level = DEBUG
handlers = fileHandler, consoleHandler
qualname = Merger
propagate = 0
[handler_fileHandler]
class = handlers.RotatingFileHandler
level=DEBUG
formatter = syslogFormatter
args = ('/var/log/merger.log','a', 41943040, 3)
[handler_consoleHandler]
class = StreamHandler
level = DEBUG
formatter = simpleFormatter
args = (sys.stdout,)
[handler_syslogHandler]
class = handlers.SysLogHandler
level=DEBUG
formatter = syslogFormatter
args = ('/dev/log', handlers.SysLogHandler.LOG_USER)
[formatter_simpleFormatter]
format = %(message)s
datefmt =
[formatter_detailedFormatter]
format = %(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s
datefmt = %Y.%m.%d %H:%M:%S
[formatter_syslogFormatter]
format = %(asctime)s %(name)s: [%(levelname)s] %(message)s
datefmt = %Y.%m.%d