Skip to content

Commit

Permalink
sample logconf file
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-portier committed Dec 26, 2022
1 parent cf31225 commit b856844
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions debug-logconf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# new yaml format for python logging config
# see https://docs.python.org/3/library/logging.config.html for description of dictConfig
version: 1
formatters:
base:
format: '%(asctime)-18s @%(name)-23s [%(levelname)-8s] %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
handlers:
stderr:
class: logging.StreamHandler
level: DEBUG
formatter: base
stream: ext://sys.stderr
file:
class: logging.FileHandler
level: DEBUG
formatter: base
filename: pyamplipi.log
mode: 'w' # in stead of 'a'
loggers:
__main__:
level: DEBUG
propagate: yes
pyamplipi:
level: DEBUG
propagate: yes
root:
level: DEBUG
handlers: [stderr, file]

0 comments on commit b856844

Please sign in to comment.