Spaces:
Runtime error
Runtime error
Commit
•
f7b0e5b
1
Parent(s):
c81aa93
chore: Add log_conf.yaml for logging configuration
Browse files- log_conf.yaml +34 -0
log_conf.yaml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: 1
|
2 |
+
disable_existing_loggers: False
|
3 |
+
formatters:
|
4 |
+
default:
|
5 |
+
# "()": uvicorn.logging.DefaultFormatter
|
6 |
+
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
7 |
+
access:
|
8 |
+
# "()": uvicorn.logging.AccessFormatter
|
9 |
+
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
10 |
+
handlers:
|
11 |
+
default:
|
12 |
+
formatter: default
|
13 |
+
class: logging.StreamHandler
|
14 |
+
stream: ext://sys.stderr
|
15 |
+
access:
|
16 |
+
formatter: access
|
17 |
+
class: logging.StreamHandler
|
18 |
+
stream: ext://sys.stdout
|
19 |
+
loggers:
|
20 |
+
uvicorn.error:
|
21 |
+
level: INFO
|
22 |
+
handlers:
|
23 |
+
- default
|
24 |
+
propagate: no
|
25 |
+
uvicorn.access:
|
26 |
+
level: INFO
|
27 |
+
handlers:
|
28 |
+
- access
|
29 |
+
propagate: no
|
30 |
+
root:
|
31 |
+
level: DEBUG
|
32 |
+
handlers:
|
33 |
+
- default
|
34 |
+
propagate: no
|