Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: 1
- formatters:
- simple:
- format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
- handlers:
- console:
- class: logging.StreamHandler
- formatter: simple
- level: DEBUG
- stream: ext://sys.stdout
- file_debug:
- class: logging.handlers.RotatingFileHandler
- formatter: simple
- level: DEBUG
- filename: /path/to/debug.log
- maxBytes: 10485760
- backupCount: 3
- file_info:
- class: logging.handlers.RotatingFileHandler
- formatter: simple
- level: INFO
- filename: /path/to/info.log
- maxBytes: 10485760
- backupCount: 3
- file_error:
- class: logging.handlers.RotatingFileHandler
- formatter: simple
- level: ERROR
- filename: /path/to/error.log
- maxBytes: 10485760
- backupCount: 3
- root:
- level: DEBUG
- handlers: [console, file_info, file_error, file_debug]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement