File size: 820 Bytes
ad87194 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
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]
|