heat-translator/translator/conf/heat_translator_logging.conf
Lakshmi cf78251b8b Formatters ConfigParser NoSectionError
Added logic to fetch the log configuration file from conf path.

    Closes-bug: #1566567

Change-Id: I0af8d7a77a73e7865976bfb17dddddbc65eab432
2016-04-14 19:43:23 +05:30

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 =