924cfb0ac8
Added heat-translator-logging.conf heat-translator.py and osc/v1/translate.py reads configuration file. Added warning log messages before raising exceptions To be added proper log messages in the code with other log levels Partially Implements: blueprint heat-translator-logging Change-Id: I5aeb39a83dc8dcc59245968d3dd8a6451d93865c
44 lines
839 B
Plaintext
44 lines
839 B
Plaintext
|
|
[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 =
|