deb-murano/etc/murano/logging.conf.sample
Alexey Khivin 11a96c94c8 Logging API for MuranoPL
Add new API calls that will provide logging and can be
consumed by MuranoPL workflows. It will improve debuggability.
Application author can use logs to improve application quality.

Implements: blueprint logging-api-for-muranopl
Change-Id: I747cf7f5fca20960f2304605e1c7241f465f5dc1
2015-08-30 00:11:40 +03:00

84 lines
1.6 KiB
Plaintext

[loggers]
keys: root,murano,applications
[handlers]
keys: watchedfile, applications, stderr, stdout, null
[formatters]
keys: context, default
[logger_root]
level = WARNING
handlers = watchedfile
[logger_applications]
level = DEBUG
handlers = applications
qualname = applications
[logger_murano]
level = INFO
handlers = watchedfile
qualname = murano
[logger_amqp]
level = WARNING
handlers = stderr
qualname = amqp
[logger_amqplib]
level = WARNING
handlers = stderr
qualname = amqplib
[logger_sqlalchemy]
level = WARNING
handlers = stderr
qualname = sqlalchemy
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARNING" logs neither. (Recommended for production systems.)
[logger_eventletwsgi]
level = WARNING
handlers = stderr
qualname = eventlet.wsgi.server
[logger_messaging]
level = WARNING
handlers = stderr
qualname = oslo.messaginga
[handler_null]
class = oslo_log.handlers.NullHandler
formatter = default
args = ()
[handler_stderr]
class = StreamHandler
args = (sys.stderr,)
formatter = context
[handler_stdout]
class = StreamHandler
args = (sys.stdout,)
formatter = context
[handler_watchedfile]
class: handlers.WatchedFileHandler
args: ('murano.log',)
formatter: context
[handler_applications]
class: handlers.WatchedFileHandler
args: ('applications.log',)
formatter: context
[formatter_default]
format = %(message)s
[formatter_context]
class: oslo_log.formatters.ContextFormatter
args: (datefmt=datefmt)
format: %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user)s %(tenant)s] %(instance)s%(message)s
datefmt: %Y-%m-%d %H:%M:%S