1234567891011121314151617181920212223242526272829303132333435363738 |
- version: 1
- disable_existing_loggers: no
- formatters:
- simple:
- format: "%(asctime)s - %(name)s - %(message)s"
- extended:
- format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
- handlers:
- console:
- class: logging.StreamHandler
- level: DEBUG
- formatter: extended
- stream: ext://sys.stdout
- file_handler:
- class: logging.handlers.RotatingFileHandler
- level: INFO
- formatter: extended
- filename: test.log
- maxBytes: 5242880
- backupCount: 1
- encoding: utf8
- loggers:
- dev:
- level: DEBUG
- handlers: [console, file_handler]
- propagate: no
- test:
- level: INFO
- handlers: [console]
- propagate: no
- root:
- level: DEBUG
- handlers: [console, file_handler]
|