"Fossies" - the Fresh Open Source Software Archive

Member "monasca-api-4.0.0/etc/api-logging.conf" (13 May 2020, 975 Bytes) of package /linux/misc/openstack/monasca-api-4.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "api-logging.conf": 3.1.0_vs_4.0.0.

    1 [loggers]
    2 keys = root, sqlalchemy, kafka, kafkalib
    3 
    4 [handlers]
    5 keys = console, file
    6 
    7 [formatters]
    8 keys = context
    9 
   10 [logger_root]
   11 level = DEBUG
   12 handlers = console, file
   13 
   14 [logger_sqlalchemy]
   15 qualname = sqlalchemy.engine
   16 # "level = INFO" logs SQL queries.
   17 # "level = DEBUG" logs SQL queries and results.
   18 # "level = WARN" logs neither.  (Recommended for production systems.)
   19 level = DEBUG
   20 handlers = console, file
   21 propagate=0
   22 
   23 [logger_kafka]
   24 qualname = kafka
   25 level = DEBUG
   26 handlers = console, file
   27 propagate = 0
   28 
   29 [logger_kafkalib]
   30 qualname = monasca_common.kafka_lib
   31 level = INFO
   32 handlers = console, file
   33 propagate = 0
   34 
   35 [handler_console]
   36 class = logging.StreamHandler
   37 args = (sys.stderr,)
   38 level = DEBUG
   39 formatter = context
   40 
   41 [handler_file]
   42 class = logging.handlers.RotatingFileHandler
   43 level = DEBUG
   44 formatter = context
   45 # store up to 5*100MB of logs
   46 args = ('/var/log/monasca/api/monasca-api.log', 'a', 104857600, 5)
   47 
   48 [formatter_context]
   49 class = oslo_log.formatters.ContextFormatter