-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging.config
More file actions
45 lines (36 loc) · 804 Bytes
/
logging.config
File metadata and controls
45 lines (36 loc) · 804 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
38
39
40
41
42
43
44
45
[loggers]
keys=root,sqlalchemy,app
[handlers]
keys=consoleHandler,fileHandler,appFileHandler
[formatters]
keys=simpleFormatter
[logger_root]
level=WARNING
handlers=consoleHandler
[logger_sqlalchemy]
level=INFO
handlers=consoleHandler,fileHandler
qualname=sqlalchemy.engine
propagate=0
[logger_app]
level=INFO
handlers=consoleHandler,appFileHandler
qualname=app
propagate=0
[handler_consoleHandler]
class=StreamHandler
level=NOTSET
formatter=simpleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=FileHandler
level=NOTSET
formatter=simpleFormatter
args=('/app/logs/sqlalchemy.log', 'a')
[handler_appFileHandler]
class=FileHandler
level=NOTSET
formatter=simpleFormatter
args=('/app/logs/app.log', 'a')
[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s