openstack-ansible-os_monasca/templates/monasca-api/api-logging.conf.j2
Flávio Ramalho b884927071 Monasca role refactoring[+docs]
This patch refactors the whole monasca role by bringing consistency
with the other openstack-ansible roles. Main changes include:
  - Install services on its specific cointainer;
  - monasca-thresh, monasca-notification and monasca-persister was
    not being installed/configured, now it is;
  - Tempest tests are ran for the whole monasca-api;
  - The service should be fully functional;
  - Added documentation.

The extras directory contains the changes necessary to openstack-
ansible to setup monasca.

Change-Id: Ib53d4311c4b4aa722c7cdf7b18632e23b8639a56
2017-06-19 14:45:02 -03:00

46 lines
983 B
Django/Jinja

# {{ ansible_managed }}
[loggers]
keys = root, sqlalchemy, kafka
[handlers]
keys = console, file
[formatters]
keys = context
[logger_root]
level = {{ monasca_log_level }}
handlers = console, file
[logger_sqlalchemy]
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
level = {{ monasca_log_level }}
handlers = console, file
propagate = 0
[logger_kafka]
qualname = kafka
level = {{ monasca_log_level }}
handlers = console, file
propagate = 0
[handler_console]
class = logging.StreamHandler
args = (sys.stderr,)
level = {{ monasca_log_level }}
formatter = context
[handler_file]
class = logging.handlers.RotatingFileHandler
level = {{ monasca_log_level }}
formatter = context
# store up to 5*100MB of logs
args = ('/var/log/{{ monasca_service_name }}/api.log', 'a', 104857600, 5)
[formatter_context]
class = oslo_log.formatters.ContextFormatter