-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.json
More file actions
37 lines (37 loc) · 763 Bytes
/
logging.json
File metadata and controls
37 lines (37 loc) · 763 Bytes
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
{
"version": 1,
"formatters": {
"standard": {
"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "standard",
"level": "DEBUG"
},
"file": {
"class": "logging.FileHandler",
"formatter": "standard",
"level": "DEBUG",
"filename": "/logs/switchbot_api2mqtt.log"
}
},
"loggers": {
"switchbot_api2mqtt": {
"handlers": ["console", "file"],
"level": "INFO",
"propagate": false
},
"http_utils": {
"handlers": ["console", "file"],
"level": "INFO",
"propagate": false
}
},
"root": {
"level": "INFO",
"handlers": ["console", "file"]
}
}