-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.conf
46 lines (35 loc) · 987 Bytes
/
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
46
[handlers]
keys=simple,luigi,luigifile
[handler_simple]
class=StreamHandler
level=DEBUG
formatter=simple
args=(sys.stdout,)
[handler_luigi]
class=StreamHandler
level=DEBUG
formatter=luigi
args=(sys.stdout,)
[handler_luigifile]
formatter=json
args=("./logs/luigi.log", "m", 20, 15)
class=handlers.TimedRotatingFileHandler
# ================================================================
[formatters]
keys=simple,json,luigi
[formatter_simple]
format=%(asctime)s.%(msecs)03d %(name)-12s %(levelname)-8s %(message)s
datefmt=%y-%m-%d %H:%M:%S
[formatter_luigi]
format=%(asctime)s %(name)s[%(process)s] %(levelname)s: %(message)s
datefmt=%y-%m-%d %H:%M:%S
class = utils.luigi_logger.LuigiColorFormatter
[formatter_json]
format = %(asctime)s.%(msecs)03d %(levelname)-8s %(name)-12s %(message)s
class = pythonjsonlogger.jsonlogger.JsonFormatter
# ================================================================
[loggers]
keys=root
[logger_root]
level=INFO
handlers=luigi,luigifile