Skip to content

Instantly share code, notes, and snippets.

@wfng92
Created June 27, 2022 02:47
Show Gist options
  • Save wfng92/d710943ca9a0d2b19dc5162c1c962230 to your computer and use it in GitHub Desktop.
Save wfng92/d710943ca9a0d2b19dc5162c1c962230 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