Commit 6711cc1c authored by Jean Rebiffe's avatar Jean Rebiffe
Browse files

logging_config.yaml: Add new file

parent 681aac28
Loading
Loading
Loading
Loading

logging_config.yaml

0 → 100644
+33 −0
Original line number Diff line number Diff line
%YAML 1.1
---
# lncc.py configuration, use: 'set logging_config logging_config.yaml'
# Standard Python Logging configuration
# See https://docs.python.org/3/howto/logging.html
version: 1
formatters:
  simple:
    format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
handlers:
  console:
    class: logging.StreamHandler
    level: DEBUG
    formatter: simple
    stream: ext://sys.stderr
  logfile:
    class: logging.FileHandler
    level: INFO
    formatter: simple
    filename: lsdnc.log
loggers:
  lsdnc:
    level: DEBUG
    handlers: [console, logfile]
    propagate: no
  ncclient:
    level: WARNING
    handlers: [console, logfile]
    propagate: no
root:
  level: DEBUG
  handlers: [console]
...