Create logging_config.yaml

This commit is contained in:
赵璟 2024-10-15 11:02:23 +08:00 committed by GitHub
parent d75bb0b1c2
commit a215105940
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,31 @@
version: 1
disable_existing_loggers: False
formatters:
default:
format: "%(asctime)s - %(levelname)s - %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
filters:
ignore_specific_requests:
(): utils.log_filters.IgnoreSpecificRequestsFilter
handlers:
console:
class: logging.StreamHandler
formatter: default
stream: ext://sys.stdout
filters: [ignore_specific_requests]
loggers:
uvicorn:
level: INFO
handlers: [console]
propagate: False
uvicorn.error:
level: INFO
handlers: [console]
propagate: False
uvicorn.access:
level: INFO
handlers: [console]
propagate: False
root:
level: INFO
handlers: [console]