-
Notifications
You must be signed in to change notification settings - Fork 1
/
logging_config.json
44 lines (42 loc) · 1.17 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
{
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"simple": {
"format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S"
},
"syslog": {
"format": "%(name)s - %(levelname)s - %(message)s"
}
},
"handlers": {
"console":{
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "simple",
"stream": "ext://sys.stdout"
},
"rotate_16mb": {
"level": "INFO",
"class": "logging.handlers.RotatingFileHandler",
"formatter": "simple",
"maxBytes": 16777216,
"backupCount": 10,
"filename": "{{AUTOMINE_LOG_DIR}}/{{__name__}}.log",
"encoding": "utf-8"
},
"sys-logger6": {
"class": "logging.handlers.SysLogHandler",
"address": "/dev/log",
"facility": "local6",
"formatter": "syslog"
}
},
"loggers": {
"__name__": {
"level": "INFO",
"handlers": ["sys-logger6", "rotate_16mb"]
}
}
}