From a215105940ce8bbdbf83caca15d902ff8b31c815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E7=92=9F?= Date: Tue, 15 Oct 2024 11:02:23 +0800 Subject: [PATCH] Create logging_config.yaml --- docker/apphub/config/logging_config.yaml | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docker/apphub/config/logging_config.yaml diff --git a/docker/apphub/config/logging_config.yaml b/docker/apphub/config/logging_config.yaml new file mode 100644 index 00000000..70b4ad16 --- /dev/null +++ b/docker/apphub/config/logging_config.yaml @@ -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]