macao-pos/docs/config_logging/logging_production.yaml

26 lines
537 B
YAML
Raw Normal View History

2017-03-21 11:26:25 +01:00
version: 1
formatters:
default:
format: '%(asctime)s %(levelname)-8s %(name)-30s %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: default
stream: ext://sys.stdout
file:
class: logging.handlers.RotatingFileHandler
formatter: default
filename: pos.log
maxBytes: 1024
backupCount: 3
loggers:
pos:
level: WARNING
handlers: [console,file]
sqlalchemy:
level: CRITICAL
handlers: [console,file]