-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-logging.json.example
49 lines (49 loc) · 1.74 KB
/
config-logging.json.example
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
{
"logging": {
"version": 1,
"disable_existing_loggers": false,
"formatters": {
"single-line": {
"class": "logging.Formatter",
"format": "%(levelname)-6s; %(asctime)s; %(name)-6s; %(module)s:%(funcName)s:line-%(lineno)d: %(message)s"
}
},
"handlers": {
"console": {
"level": "DEBUG",
"class": "logging.StreamHandler",
"formatter": "single-line",
"stream": "ext://sys.stdout"
},
"file_daily": {
"level": "DEBUG",
"class": "cloudblue_connector.logger_handlers.TimedCompressedRotatingFileHandler",
"formatter": "single-line",
"filename": "/var/log/cloudblue-connector/connector.log",
"when": "MIDNIGHT",
"backupCount": 30,
"encoding": "utf-8"
},
"file_weekly_errors": {
"level": "ERROR",
"class": "cloudblue_connector.logger_handlers.TimedCompressedRotatingFileHandler",
"formatter": "single-line",
"filename": "/var/log/cloudblue-connector/connector_errors.log",
"when": "W0",
"backupCount": 5,
"encoding": "utf-8"
},
"syslog": {
"level": "ERROR",
"class": "logging.handlers.SysLogHandler",
"formatter": "single-line",
"address": ["localhost", 514],
"facility": 1
}
},
"root": {
"handlers": ["file_daily", "file_weekly_errors", "console"],
"level": "DEBUG"
}
}
}