26 lines
537 B
YAML
26 lines
537 B
YAML
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]
|