Skip to content

Instantly share code, notes, and snippets.

@blueset blueset/config.yaml
Created Aug 31, 2019

Embed
What would you like to do?
Rotational logger sample
# ...
logging:
version: 1
disable_existing_loggers: false
formatters:
sample:
format: '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
handlers:
rotation:
level: INFO
formatter: sample
class: logging.RotatingFileHandler
filename: /var/log/ehforwarderbot.default.log
maxBytes: 104857600 # 100 MiB
backupCount: 5
loggers:
'':
handlers: [rotation,]
level: DEBUG
propagate: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.