-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging_config.json
55 lines (55 loc) · 1.36 KB
/
logging_config.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
53
54
55
{
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"json": {
"()": "logger.MyJSONFormatter",
"datefmt": "%Y-%m-%dT%H:%M:%S%z",
"max_length": 0,
"fmt_keys": {
"level": "levelname",
"timestamp": "asctime",
"message": "msg",
"extra": "extra",
"logger": "name",
"module": "module",
"function": "funcName",
"line": "lineno"
}
},
"simple_json": {
"()": "logger.SimpleJSONFormatter",
"max_length": 128
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "simple_json",
"stream": "ext://sys.stdout"
},
"file": {
"class": "logging.handlers.RotatingFileHandler",
"level": "DEBUG",
"formatter": "json",
"filename": "logs/my_app.log.jsonl",
"maxBytes": 1000000,
"backupCount": 3
}
},
"loggers": {
"live_translation": {
"level": "DEBUG",
"handlers": [
"console",
"file"
],
"propagate": false
},
"": {
"level": "DEBUG",
"handlers": []
}
}
}