diff options
author | Nate Sesti <33237525+sestinj@users.noreply.github.com> | 2023-06-01 00:45:38 +0000 |
---|---|---|
committer | Nate Sesti <33237525+sestinj@users.noreply.github.com> | 2023-06-01 00:45:38 +0000 |
commit | 6d25749458f75d5d1cf34213bc39f12c28a45d3b (patch) | |
tree | 991a11c16b788b0b826dc2035af40bd243675d6a /extension/logging.yaml | |
parent | a1eba543b148b046a58957946334886a41432451 (diff) | |
download | sncontinue-6d25749458f75d5d1cf34213bc39f12c28a45d3b.tar.gz sncontinue-6d25749458f75d5d1cf34213bc39f12c28a45d3b.tar.bz2 sncontinue-6d25749458f75d5d1cf34213bc39f12c28a45d3b.zip |
logging.yaml in the right place
Diffstat (limited to 'extension/logging.yaml')
-rw-r--r-- | extension/logging.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/extension/logging.yaml b/extension/logging.yaml new file mode 100644 index 00000000..391041ef --- /dev/null +++ b/extension/logging.yaml @@ -0,0 +1,30 @@ +version: 1 +disable_existing_loggers: False +formatters: + default: + (): 'uvicorn.logging.DefaultFormatter' + fmt: '%(asctime)s %(levelprefix)-9s %(name)s -: %(message)s' + access: + (): 'uvicorn.logging.AccessFormatter' + fmt: '%(asctime)s %(levelprefix)-9s %(name)s -: %(client_addr)s - "%(request_line)s" %(status_code)s' +handlers: + default: + class: logging.StreamHandler + formatter: default + stream: ext://sys.stderr + access: + class: logging.StreamHandler + formatter: access + stream: ext://sys.stdout +loggers: + uvicorn: + level: INFO + handlers: + - default + uvicorn.error: + level: INFO + uvicorn.access: + level: INFO + propagate: False + handlers: + - access
\ No newline at end of file |