Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
WSL0809 committed Jun 20, 2024
1 parent c9550d9 commit ef3f1de
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions log_config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
version: 1
formatters:
default:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
access:
"()": uvicorn.logging.AccessFormatter
fmt: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'

handlers:
console:
class: logging.StreamHandler
formatter: default
stream: ext://sys.stdout
access_console:
class: logging.StreamHandler
formatter: access
stream: ext://sys.stdout

loggers:
uvicorn:
handlers: [console]
Expand All @@ -19,5 +26,5 @@ loggers:
propagate: False
uvicorn.access:
level: INFO
handlers: [console]
handlers: [access_console]
propagate: False

0 comments on commit ef3f1de

Please sign in to comment.