Project / logging_config.yaml
puzan789's picture
updated
ad87194
raw
history blame
820 Bytes
version: 1
disable_existing_loggers: False
formatters:
standard:
format: '[%(asctime)s: %(levelname)s: %(module)s: %(message)s]'
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: standard
stream: ext://sys.stdout
file:
class: logging.handlers.TimedRotatingFileHandler
level: INFO
formatter: standard
filename: logs/application.log
when: midnight
interval: 1
backupCount: 30
loggers:
__main__:
level: INFO
handlers: [console, file]
propagate: no
uvicorn:
level: INFO
handlers: [console, file]
propagate: no
uvicorn.error:
level: INFO
handlers: [console, file]
propagate: no
uvicorn.access:
level: INFO
handlers: [console, file]
propagate: no
root:
level: INFO
handlers: [console, file]