summaryrefslogtreecommitdiff
path: root/extension/logging.yaml
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-06-01 00:45:38 +0000
committerNate Sesti <33237525+sestinj@users.noreply.github.com>2023-06-01 00:45:38 +0000
commitd6c78e357fb1010f4243a9a1fb53f6457209d192 (patch)
treecc5edcc5bc3802b1e59d45d116c3893ca0888708 /extension/logging.yaml
parenta4e9e7764ee42a743dbfbaedb520cc70daa23ec4 (diff)
downloadsncontinue-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.yaml30
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