blob: e01a88946ffceef228007df01e73ee8c2cbcc218 (
plain)
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
|
[loggers]
keys=root,heat-translator
[handlers]
keys=RotatingFileHandler,SysLogHandler,NullHandler
[formatters]
keys=form01
[logger_root]
level=DEBUG
handlers=NullHandler
[logger_heat-translator]
level=INFO
#one can be removed based on requirements
handlers=SysLogHandler, RotatingFileHandler
qualname=heat-translator
propagate=1
[handler_RotatingFileHandler]
class=handlers.RotatingFileHandler
level=INFO
formatter=form01
#rotation happens after 100MB
args=('/tmp/heat-translator.log', 'a', 100000000, 5, 'utf8')
[handler_SysLogHandler]
class=handlers.SysLogHandler
formatter=form01
level=INFO
args=('/dev/log', handlers.SysLogHandler.LOG_SYSLOG)
[handler_NullHandler]
class=NullHandler
formatter=form01
level=DEBUG
args=()
[formatter_form01]
format = %(asctime)s - %(name)s - %(levelname)s - %(filename)s : %(message)s
datefmt =
|