zaqar/etc/logging.conf-sample
Kurt Griffiths 01ad3f1a8f chore: Stub out how the kernel will be configured, and connect transports and storage
Change-Id: Ib92e4f7914688a60f81e078de4da32f11067b80c
Implements: blueprint endpoints
2013-02-26 19:40:42 +01:00

62 lines
997 B
Plaintext

; Loaded via logging.config.fileConfig
; @todo Customize for Marconi loggers
[loggers]
keys=root
[handlers]
keys=production,file,devel
[formatters]
keys=minimal,normal,debug
###########
# Loggers #
###########
[logger_root]
level=WARNING
handlers=file
[logger_access]
level=INFO
qualname=access
handlers=access_file
################
# Log Handlers #
################
[handler_production]
class=handlers.SysLogHandler
level=ERROR
formatter=normal
args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
[handler_file]
class=handlers.WatchedFileHandler
level=WARNING
formatter=normal
args=('error.log',)
[handler_devel]
class=StreamHandler
level=NOTSET
formatter=debug
args=(sys.stdout,)
##################
# Log Formatters #
##################
[formatter_minimal]
format=%(message)s
[formatter_normal]
format=(%(name)s): %(asctime)s %(levelname)s %(message)s
[formatter_debug]
format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s %(message)s