generated from marcieltorres/python-boilerplate-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.conf
45 lines (35 loc) · 1.02 KB
/
logging.conf
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,app
[handlers]
keys=consoleHandler,detailedConsoleHandler,jsonConsoleHandler
[formatters]
keys=normalFormatter,detailedFormatter,jsonFormatter
[logger_root]
level=INFO
handlers=jsonConsoleHandler
[logger_app]
level=INFO
handlers=jsonConsoleHandler
qualname=app
propagate=0
[handler_consoleHandler]
class=StreamHandler
level=INFO
formatter=normalFormatter
args=(sys.stdout,)
[handler_detailedConsoleHandler]
class=StreamHandler
level=INFO
formatter=detailedFormatter
args=(sys.stdout,)
[handler_jsonConsoleHandler]
class=StreamHandler
level=INFO
formatter=jsonFormatter
args=(sys.stdout,)
[formatter_normalFormatter]
format=%(asctime)s loglevel=%(levelname)-6s logger=%(name)s %(funcName)s() L%(lineno)-4d %(message)s
[formatter_detailedFormatter]
format=%(asctime)s loglevel=%(levelname)-6s logger=%(name)s %(funcName)s() L%(lineno)-4d %(message)s call_trace=%(pathname)s L%(lineno)-4d
[formatter_jsonFormatter]
format="{'time':'%(asctime)s', 'logger': '%(name)s', 'level': '%(levelname)s', 'message': '%(message)s'}"