Merge "Have task/flow logging go to a separate log file"

This commit is contained in:
Jenkins 2014-08-29 03:56:50 +00:00 committed by Gerrit Code Review
commit 91f1966921

@ -1,8 +1,8 @@
[loggers]
keys = root, cinder
keys = root, cinder, taskflow, cinder_flow_utils
[handlers]
keys = stderr, stdout, watchedfile, syslog, null
keys = stderr, stdout, watchedfile, syslog, tasks, null
[formatters]
keys = context, default
@ -16,6 +16,18 @@ level = INFO
handlers = stderr
qualname = cinder
# Both of these are used for tracking what cinder and taskflow is doing with
# regard to flows and tasks (and the activity there-in).
[logger_cinder_flow_utils]
level = INFO
handlers = tasks,stderr
qualname = cinder.flow_utils
[logger_taskflow]
level = INFO
handlers = tasks
qualname = taskflow
[logger_amqplib]
level = WARNING
handlers = stderr
@ -59,6 +71,11 @@ class = handlers.WatchedFileHandler
args = ('cinder.log',)
formatter = context
[handler_tasks]
class = handlers.WatchedFileHandler
args = ('tasks.log',)
formatter = context
[handler_syslog]
class = handlers.SysLogHandler
args = ('/dev/log', handlers.SysLogHandler.LOG_USER)