frascuchon HF staff commited on
Commit
08ef84c
1 Parent(s): 514cfce

configure logs

Browse files
Files changed (1) hide show
  1. log_config.yaml +36 -0
log_config.yaml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: 1
2
+ disable_existing_loggers: False
3
+
4
+ formatters:
5
+ simple:
6
+ format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
7
+ datefmt: '%Y-%m-%d %H:%M:%S'
8
+
9
+ handlers:
10
+ console:
11
+ class: logging.StreamHandler
12
+ level: INFO
13
+ formatter: simple
14
+ stream: ext://sys.stdout
15
+
16
+ file:
17
+ class: logging.FileHandler
18
+ level: INFO
19
+ formatter: simple
20
+ filename: argilla.log
21
+ mode: a
22
+
23
+ loggers:
24
+ opensearch:
25
+ level: WARNING
26
+ handlers: [file]
27
+ propagate: no
28
+
29
+ elastic_transport:
30
+ level: WARNING
31
+ handlers: [file]
32
+ propagate: no
33
+
34
+ root:
35
+ level: INFO
36
+ handlers: [console]