kopia lustrzana https://github.com/HackerspaceWroclaw/wlokalu
42 wiersze
1.1 KiB
YAML
42 wiersze
1.1 KiB
YAML
version: 1
|
|
root:
|
|
#level: ~ # optional; DEBUG, INFO, WARNING, ERROR, CRITICAL, NOTSET
|
|
level: NOTSET
|
|
#propagate: true # optional; ignored for root logger
|
|
#filters: [...] # optional
|
|
#handlers: [console, file]
|
|
handlers: [sink]
|
|
#loggers:
|
|
# wlokalu.example_module:
|
|
# #level: DEBUG|INFO|WARNING|...
|
|
# #propagate: true
|
|
# #filters: [...]
|
|
# handlers: [example_module_processing]
|
|
formatters:
|
|
brief_formatter:
|
|
format: '%(levelname)-8s %(message)s'
|
|
precise_formatter:
|
|
format: '%(asctime)s %(levelname)-8s %(name)-15s %(message)s'
|
|
datefmt: '%Y-%m-%d %H:%M:%S'
|
|
handlers:
|
|
console:
|
|
class: logging.StreamHandler
|
|
formatter: brief_formatter
|
|
#level: CRITICAL
|
|
#filters: [...]
|
|
stream: ext://sys.stdout
|
|
#file:
|
|
# class: logging.handlers.RotatingFileHandler
|
|
# formatter: precise_formatter
|
|
# level: INFO
|
|
# filename: log/output.log
|
|
# #maxBytes: 1024
|
|
# #backupCount: 3
|
|
sink:
|
|
class: wlokalu.logging.handlers.NullHandler
|
|
# example_module_processing:
|
|
# class: logging.handlers.RotatingFileHandler
|
|
# formatter: precise_formatter
|
|
# level: INFO
|
|
# filename: log/example.log
|