-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging_config.json
60 lines (60 loc) · 1.68 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
50
51
52
53
54
55
56
57
58
59
60
{
"version": 1,
"formatters": {
"extended": {
"format": "%(asctime)s [%(levelname)s] [%(name)-16s] %(message)s <%(module)s, %(funcName)s, %(lineno)s; %(pathname)s>"
},
"short": {
"format": "[%(asctime)s] [%(levelname)s] [%(name)-16s] %(message)s"
}
},
"handlers": {
"default": {
"class": "logging.handlers.RotatingFileHandler",
"formatter": "extended",
"filename": "/tmp/drinklist-api-default.log",
"maxBytes": 104857600,
"backupCount": 10
},
"auth": {
"class": "logging.handlers.RotatingFileHandler",
"formatter": "short",
"filename": "/tmp/drinklist-api-auth.log",
"maxBytes": 104857600,
"backupCount": 10
},
"query": {
"class": "logging.handlers.RotatingFileHandler",
"formatter": "short",
"filename": "/tmp/drinklist-api-querys.log",
"maxBytes": 104857600,
"backupCount": 2
},
"console": {
"class" : "logging.StreamHandler",
"formatter": "extended"
}
},
"loggers": {
"flask.app.auth": {
"level": 20,
"propagate": false,
"handlers": ["auth"]
},
"flask.app.db": {
"level": 30,
"propagate": false,
"handlers": ["query"]
},
"sqlalchemy": {
"level": 30,
"propagate": false,
"handlers": ["query"]
}
},
"root": {
"level": 30,
"handlers": ["default"]
},
"disable_existing_loggers": true
}