-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging_config.json
49 lines (49 loc) · 1.3 KB
/
logging_config.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
{
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"simple": {
"format": "%(levelname)s: %(message)s"
},
"detailed": {
"format": "%(asctime)s: [%(levelname)s|%(module)s:%(lineno)d] %(message)s",
"datefmt": "%Y-%m-%dT%H:%M:%S%z"
}
},
"handlers": {
"stout_warn": {
"class": "logging.StreamHandler",
"level": "WARNING",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"stdout_info": {
"class": "logging.StreamHandler",
"level": "INFO",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"stdout_debug": {
"class": "logging.StreamHandler",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"file": {
"class": "logging.handlers.RotatingFileHandler",
"level": "DEBUG",
"formatter": "detailed",
"filename": "logs/logger.log",
"maxBytes": 50000,
"backupCount": 3
}
},
"loggers": {
"root": {
"level": "DEBUG",
"handlers": [
"stdout_info",
"file"
]
}
}
}