Guest User

logging.yaml

a guest
Nov 21st, 2017
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #logging.yaml
  2. version: 1
  3. disable_existing_loggers: False
  4. formatters:
  5. simple:
  6. format: '%(asctime)s %(levelname)-8s %(threadName)-12s %(message)s'
  7. datefmt: '%Y-%m-%d %H:%M:%S'
  8. detail:
  9. format: '%(asctime)s %(levelname)-8s %(module)-12s %(threadName)-12s %(mes$
  10. datefmt: '%Y-%m-%d %H:%M:%S'
  11. handlers:
  12. console:
  13. class: logging.StreamHandler
  14. formatter: simple
  15. stream: ext://sys.stdout
  16. file:
  17. class: logging.handlers.TimedRotatingFileHandler
  18. level: ERROR
  19. formatter: detail
  20. when: midnight
  21. backupCount: 7
  22. filename: ./var/log/smarthome.log
  23. loggers:
  24. plugins.knx:
  25. level: ERROR
  26. # lib.scheduler:
  27. # level: DEBUG
  28. # plugins.cli:
  29. # level: DEBUG
  30. root:
  31. level: INFO
  32. handlers: [file, console]
RAW Paste Data