-
Notifications
You must be signed in to change notification settings - Fork 9
/
logging.ini
58 lines (46 loc) · 1.42 KB
/
logging.ini
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
[loggers]
keys=root,ccxt.base.exchange,matplotlib
[handlers]
keys=consoleHandler,fileHandler,toolHandler,emailHandler,errorHandler
[formatters]
keys=simpleFormatter
[formatter_simpleFormatter]
format=[%(asctime)s %(name)s %(levelname)s]: %(message)s
[logger_root]
level=DEBUG
handlers=fileHandler,consoleHandler,errorHandler
[logger_ccxt.base.exchange]
level=WARNING
handlers=toolHandler
qualname=ccxt.base.exchange
propagate=0
[logger_matplotlib]
level=WARNING
handlers=toolHandler
qualname=matplotlib
propagate=0
[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=simpleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=logging.handlers.TimedRotatingFileHandler
level=DEBUG
formatter=simpleFormatter
kwargs={'filename':'logs/debug.log','when':"midnight",'interval':1,'backupCount':7}
[handler_errorHandler]
class=logging.handlers.TimedRotatingFileHandler
level=ERROR
formatter=simpleFormatter
kwargs={'filename':'logs/error.log','when':"midnight",'interval':1,'backupCount':7}
[handler_toolHandler]
class=logging.handlers.TimedRotatingFileHandler
level=WARNING
formatter=simpleFormatter
kwargs={'filename':'logs/tools.log','when':"midnight",'interval':1,'backupCount':7}
[handler_emailHandler]
class=logging.handlers.SMTPHandler
formatter=simpleFormatter
level=ERROR
kwargs={'mailhost':("smtp.gmail.com",587),'fromaddr':"user@gmail.com",'toaddrs':"touser@gmail.com",'subject':"backtrader error",'credentials':('','')}