-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.json
52 lines (52 loc) · 1.39 KB
/
logging.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"version": 1,
"formatters": {
"normal": {
"format": "%(asctime)s,%(msecs)d %(actorAddress)s/PID:%(process)d %(name)s %(levelname)s %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S",
"()": "osbenchmark.log.configure_utc_formatter"
},
"profile": {
"format": "%(asctime)s,%(msecs)d PID:%(process)d %(name)s %(levelname)s %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S",
"()": "osbenchmark.log.configure_utc_formatter"
}
},
"filters": {
"isActorLog": {
"()": "thespian.director.ActorAddressLogFilter"
}
},
"handlers": {
"benchmark_log_handler": {
"class": "logging.handlers.WatchedFileHandler",
"filename": "/opensearch-benchmark/.benchmark/logs/benchmark.log",
"encoding": "UTF-8",
"formatter": "normal",
"filters": ["isActorLog"]
},
"benchmark_profile_handler": {
"class": "logging.FileHandler",
"filename": "/opensearch-benchmark/.benchmark/logs/profile.log",
"delay": true,
"encoding": "UTF-8",
"formatter": "profile"
}
},
"root": {
"handlers": ["benchmark_log_handler"],
"level": "INFO"
},
"loggers": {
"opensearch": {
"handlers": ["benchmark_log_handler"],
"level": "WARNING",
"propagate": false
},
"benchmark.profile": {
"handlers": ["benchmark_profile_handler"],
"level": "INFO",
"propagate": false
}
}
}