forked from tokenspice/tokenspice
-
Notifications
You must be signed in to change notification settings - Fork 3
/
logging.conf
122 lines (100 loc) · 2.46 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# logging.conf: Configure log levels and more.
# Tutorial: https://docs.python.org/3/howto/logging.html
# --------------------------------------------------------------------------
# Custom loggers for this project.
# On parameters:
# -"level": one of INFO, DEBUG, WARNING, ERROR, CRITICAL. Default=WARNING.
# -"handlers": one of consoleHandler (send to console), streamHandler (to file-like objects), fileHandler (to disk files), socketHandler (to TCP/IP sockets), SMTPHandler (to email), HTTPHandler (to an HTTP server), NullHandler (do nothing)
# -"qualname": A py module uses this to get its logger. Example: log = logging.getLogger('mathutil')
# -"propagate": Set to 0 to avoid double-logging. Or get fancy w/ hierarchy.
[loggers]
keys=root,agents,baseagent,ascii,constants,kpis,master,mathutil,marketagents,minteragents,simstate,simstrategy,strutil,valuation,wallet
[logger_agents]
level=WARNING
handlers=consoleHandler
qualname=agent
propagate=0
[logger_baseagent]
level=WARNING
handlers=consoleHandler
qualname=agent
propagate=0
[logger_ascii]
level=WARNING
handlers=consoleHandler
qualname=ascii
propagate=0
[logger_constants]
level=WARNING
handlers=consoleHandler
qualname=constants
propagate=0
[logger_kpis]
level=WARNING
handlers=consoleHandler
qualname=kpis
propagate=0
[logger_master]
level=WARNING
handlers=consoleHandler
qualname=master
propagate=0
[logger_mathutil]
level=WARNING
handlers=consoleHandler
qualname=mathutil
propagate=0
[logger_marketagents]
level=WARNING
handlers=consoleHandler
qualname=marketagents
propagate=0
[logger_minteragents]
level=WARNING
handlers=consoleHandler
qualname=minteragents
propagate=0
[logger_simstate]
level=INFO
handlers=consoleHandler
qualname=simstate
propagate=0
[logger_simstrategy]
level=WARNING
handlers=consoleHandler
qualname=simstrategy
propagate=0
[logger_strutil]
level=WARNING
handlers=consoleHandler
qualname=strutil
propagate=0
[logger_valuation]
level=WARNING
handlers=consoleHandler
qualname=wallet
propagate=0
[logger_wallet]
level=WARNING
handlers=consoleHandler
qualname=wallet
propagate=0
# --------------------------------------------------------------------------
# Standard setup
[formatters]
keys=simpleFormatter
[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=
[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=simpleFormatter
args=(sys.stdout,)
[handlers]
keys=consoleHandler
[logger_root]
level=DEBUG
handlers=consoleHandler
qualname=root
propagate=0