-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.json
More file actions
39 lines (39 loc) · 1010 Bytes
/
logging.json
File metadata and controls
39 lines (39 loc) · 1010 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
38
39
{
"version": 1,
"formatters": {
"standard": {
"format": "%(asctime)s %(levelname)-6s %(name)-15s %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S"
},
"ColouredFormatter": {
"()": "src.utils.ColouredFormatter.ColouredFormatter"
}
},
"handlers": {
"file": {
"class": "logging.handlers.RotatingFileHandler",
"formatter": "standard",
"level": "DEBUG",
"filename": "logs/latest.log",
"mode": "w",
"maxBytes": 100000,
"backupCount": 5
},
"stdout": {
"class": "logging.StreamHandler",
"formatter": "ColouredFormatter",
"level": "INFO",
"stream": "ext://sys.stdout"
}
},
"loggers": {
"": {
"level": "DEBUG",
"handlers": [
"file",
"stdout"
],
"propagate": false
}
}
}