-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlogging.json
40 lines (40 loc) · 1.09 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
{
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"concise": {
"class": "logging.Formatter",
"format": "%(asctime)s %(levelname).5s - %(message)s"
},
"verbose": {
"class": "logging.Formatter",
"format": "%(asctime)s %(levelname).5s - %(process)d:%(threadName)s; %(name)s.%(funcName)s#%(lineno)d: %(message)s"
}
},
"handlers": {
"console": {
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "concise",
"stream": "ext://sys.stdout"
},
"file_handler": {
"level": "DEBUG",
"class": "logging.handlers.RotatingFileHandler",
"formatter": "verbose",
"filename": "/var/nephele/nephele.log",
"mode": "a",
"maxBytes": 26214400,
"backupCount": 5,
"encoding": "utf-8"
}
},
"loggers": {},
"root": {
"handlers": [
"console",
"file_handler"
],
"level": "DEBUG"
}
}