J7RSYILECL / logging_config.yaml
puzan789's picture
initial commit
fe93dd0
raw
history blame contribute delete
584 Bytes
version: 1
disable_existing_loggers: False
formatters:
standard:
format: '[%(asctime)s: %(levelname)s: %(module)s: %(message)s]'
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: standard
stream: ext://sys.stdout
file:
class: logging.handlers.TimedRotatingFileHandler
level: INFO
formatter: standard
filename: logs/application.log
when: midnight
interval: 1
backupCount: 30
loggers:
__main__:
level: DEBUG
handlers: [console, file]
propagate: no
root:
level: DEBUG
handlers: [console, file]