forked from megamattron/TeachCraft-Server
-
Notifications
You must be signed in to change notification settings - Fork 28
/
logging.json
53 lines (53 loc) · 1.49 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
53
{
"disable_existing_loggers": false,
"handlers": {
"error_file_handler": {
"encoding": "utf8",
"backupCount": 20,
"filters": [],
"level": "ERROR",
"formatter": "file",
"class": "utils.log.WrapperHandler",
"maxBytes": 10485760,
"filename": "logs/wrapper/wrapper.errors.log"
},
"console": {
"stream": "ext://sys.stdout",
"formatter": "standard",
"class": "logging.StreamHandler",
"filters": [],
"level": "INFO"
},
"wrapper_file_handler": {
"encoding": "utf8",
"backupCount": 20,
"filters": [],
"level": "INFO",
"formatter": "file",
"class": "utils.log.WrapperHandler",
"maxBytes": 10485760,
"filename": "logs/wrapper/wrapper.log"
}
},
"wrapperversion": 1.2,
"formatters": {
"file": {
"datefmt": "%Y-%m-%d %H:%M:%S",
"format": "[%(asctime)s] [%(name)s/%(levelname)s]: %(message)s"
},
"standard": {
"datefmt": "%H:%M:%S",
"()": "utils.log.ColorFormatter",
"format": "[%(asctime)s] [%(name)s/%(levelname)s]: %(message)s"
}
},
"version": 1,
"root": {
"handlers": [
"console",
"wrapper_file_handler",
"error_file_handler"
],
"level": "NOTSET"
}
}