Skip to content

Instantly share code, notes, and snippets.

@wfng92
Created June 27, 2022 02:43
Show Gist options
  • Save wfng92/aac7d56abdc160c054a96c6112a541c4 to your computer and use it in GitHub Desktop.
Save wfng92/aac7d56abdc160c054a96c6112a541c4 to your computer and use it in GitHub Desktop.
version: 1
disable_existing_loggers: False
formatters:
default:
"()": uvicorn.logging.DefaultFormatter
datefmt: "%Y-%m-%dT%H:%M:%S"
format: '[%(asctime)s.%(msecs)03dZ] %(name)s %(levelname)s %(message)s'
access:
"()": uvicorn.logging.AccessFormatter
datefmt: "%Y-%m-%dT%H:%M:%S"
format: '[%(asctime)s.%(msecs)03dZ] %(name)s %(levelname)s %(message)s'
handlers:
default:
formatter: default
class: logging.StreamHandler
stream: ext://sys.stderr
access:
formatter: access
class: logging.StreamHandler
stream: ext://sys.stdout
loggers:
uvicorn.error:
level: INFO
handlers:
- default
propagate: no
uvicorn.access:
level: INFO
handlers:
- access
propagate: no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment