e1a9b9a96a
Change upgrades the monasca-notification to leverage the capabilities of both oslo.log and oslo.conf: - configuration of logging separated from application settings - ability to enforce data types for application settings - ability to use oslo.config-generator capabilities - automatic configuration parsing done by oslo.cfg That change will bring it closer to the rest of monasca components where such transition has happened already. However, in the rest of monasca, oslo.cfg was partially or fully implemented whereas monasca-notification has been relying on YAML based configuration file. Therefore backward compatybility for such format will be kept for now. Story: 2000959 Task: 4093 Task: 4092 Change-Id: Ia75c3b60d0fada854178f21ca5ccb9e6a880f37f
47 lines
782 B
Plaintext
47 lines
782 B
Plaintext
[loggers]
|
|
keys = root, kafka, zookeeper, statsd
|
|
|
|
[handlers]
|
|
keys = console, file
|
|
|
|
[formatters]
|
|
keys = context
|
|
|
|
[logger_root]
|
|
level = DEBUG
|
|
handlers = console, file
|
|
|
|
[logger_kafka]
|
|
qualname = kafka
|
|
level = DEBUG
|
|
handlers = console, file
|
|
propagate = 0
|
|
|
|
[logger_zookeeper]
|
|
qualname = zookeeper
|
|
level = DEBUG
|
|
handlers = console, file
|
|
propagate = 0
|
|
|
|
[logger_statsd]
|
|
qualname = statsd
|
|
level = DEBUG
|
|
handlers = console, file
|
|
propagate = 0
|
|
|
|
[handler_console]
|
|
class = logging.StreamHandler
|
|
args = (sys.stderr,)
|
|
level = DEBUG
|
|
formatter = context
|
|
|
|
[handler_file]
|
|
class = logging.handlers.RotatingFileHandler
|
|
level = DEBUG
|
|
formatter = context
|
|
# store up to 5*100MB of logs
|
|
args = ('monasca-notification.log', 'a', 104857600, 5)
|
|
|
|
[formatter_context]
|
|
class = oslo_log.formatters.ContextFormatter
|