forked from msaf1980/zbxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.json.example
More file actions
37 lines (34 loc) · 930 Bytes
/
logging.json.example
File metadata and controls
37 lines (34 loc) · 930 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,
"_comment": " copy this file as logging.json in etc/",
"disable_existing_loggers": false,
"formatters": {
"simple": {
"format": "%(asctime)s_%(name)s_%(levelno)s_%(message)s"
},
"onlyTime":{
"format": "%(asctime)s_%(name)s %(message)s"
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"level": "DEBUG",
"formatter": "onlyTime",
"stream": "ext://sys.stdout"
},
"file_handler": {
"class": "logging.handlers.RotatingFileHandler",
"level": "INFO",
"formatter": "simple",
"filename": "log/zbxdb.log",
"maxBytes": 10485760,
"backupCount": 4,
"encoding": "utf8"
}
},
"root": {
"level": "INFO",
"handlers": ["console", "file_handler"]
}
}