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 | d6c78e357fb1010f4243a9a1fb53f6457209d192 (patch) | |
tree | cc5edcc5bc3802b1e59d45d116c3893ca0888708 /extension/logging.yaml | |
parent | a4e9e7764ee42a743dbfbaedb520cc70daa23ec4 (diff) | |
download | sncontinue-d6c78e357fb1010f4243a9a1fb53f6457209d192.tar.gz sncontinue-d6c78e357fb1010f4243a9a1fb53f6457209d192.tar.bz2 sncontinue-d6c78e357fb1010f4243a9a1fb53f6457209d192.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 |