davanstrien HF staff commited on
Commit
28a6437
1 Parent(s): 2161b92

Add log configuration file

Browse files
Files changed (1) hide show
  1. 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