mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
Create logging_config.yaml
This commit is contained in:
parent
d75bb0b1c2
commit
a215105940
1 changed files with 31 additions and 0 deletions
31
docker/apphub/config/logging_config.yaml
Normal file
31
docker/apphub/config/logging_config.yaml
Normal 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]
|
Loading…
Reference in a new issue