-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging
80 lines (63 loc) · 1.5 KB
/
logging
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
[logger_root]
handlers=root
level=ERROR
[handler_root]
class=StreamHandler
level=ERROR
args=(sys.stdout,)
[handler_stdout]
class=StreamHandler
args=(sys.stdout,)
#formatter=timed
[formatter_timed]
format=%(asctime)s - %(message)s
[formatter_debug]
format=%(name)s %(levelname)s - %(message)s
# ====== The following are disabled by default ======
# ======= Section for Binary TCP Traffic ======
[logger_Binary TCP Traffic]
handlers=Binary TCP Traffic
qualname=Binary TCP Traffic
#level=DEBUG
[handler_Binary TCP Traffic]
class=FileHandler
formatter=debug
args=(os.devnull, 'a')
#args=('binarytcptraffic.cpmock', 'a')
# ======= Section for Call Stack Checker ======
[logger_Call Stack Checker]
handlers=Call Stack Checker
qualname=Call Stack Checker
#level=DEBUG
[handler_Call Stack Checker]
class=FileHandler
formatter=debug
args=(os.devnull, 'a')
#args=('callstackchecker.cpmock', 'a')
# ======= Section for Replay ======
[logger_Replay]
handlers=Replay
qualname=Replay
#level=DEBUG
[handler_Replay]
class=FileHandler
formatter=debug
args=(os.devnull, 'a')
#args=('replay.cpmock', 'a')
# ======= Section for Server ======
[logger_Server]
handlers=Server
qualname=Server
#level=DEBUG
[handler_Server]
class=FileHandler
formatter=debug
args=(os.devnull, 'a')
#args=('server.cpmock', 'a')
# ====== Cruft that python logging module needs ======
[loggers]
keys=root,Binary TCP Traffic,Call Stack Checker,Replay,Server
[handlers]
keys=root,Binary TCP Traffic,Call Stack Checker,Replay,Server,stdout
[formatters]
keys=timed,debug