-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuerySolar_loggingconf.json
62 lines (55 loc) · 1.7 KB
/
QuerySolar_loggingconf.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
56
57
58
59
60
61
62
{
"version": 1,
"disable_existing_loggers": false,
"log_file_path":"$HOME/Logs",
"formatters": {
"simple": {
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
},
"extra": {"format":"%(asctime)-16s %(name)-8s %(filename)-12s %(lineno)-6s %(funcName)-30s %(levelname)-8s %(message)s",
"datefmt":"%m-%d %H:%M:%S"}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"level": "WARNING",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"debugconsole": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"debug_file_handler": {
"class": "logging.handlers.RotatingFileHandler",
"level": "DEBUG",
"formatter": "extra",
"filename": "QuerySolar.log",
"maxBytes": 1048576,
"backupCount": 40,
"encoding": "utf8"
},
"error_file_handler": {
"class": "logging.handlers.RotatingFileHandler",
"level": "ERROR",
"formatter": "extra",
"filename": "QuerySolar_errors.log",
"maxBytes": 1048576,
"backupCount": 40,
"encoding": "utf8"
}
},
"loggers": {
"__main__": {
"level": "NOTSET",
"handlers": ["console", "debug_file_handler"],
"propagate": false
}
},
"root": {
"level": "NOTSET",
"handlers": ["debugconsole", "debug_file_handler"]
}
}