-
-
Notifications
You must be signed in to change notification settings - Fork 214
/
Copy pathlogging.conf
executable file
·62 lines (45 loc) · 1.05 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
[loggers]
keys=root,UdsClient,Connection,UdsClient_unittest,Connection_unittest
[handlers]
keys=consoleHandler,fileHandler,nullHandler
[formatters]
keys=simpleFormatter
[logger_root]
level=ERROR
handlers=consoleHandler
[logger_UdsClient]
level=INFO
handlers=consoleHandler,fileHandler
qualname=UdsClient
propagate=0
[logger_Connection]
level=DEBUG
handlers=consoleHandler,fileHandler
qualname=Connection
propagate=0
# Unit test
[logger_UdsClient_unittest]
level=NOTSET
handlers=nullHandler
qualname=UdsClient[unittest]
propagate=0
[logger_Connection_unittest]
level=INFO
handlers=nullHandler
qualname=Connection[unittest]
propagate=0
[handler_consoleHandler]
class=StreamHandler
formatter=simpleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=FileHandler
formatter=simpleFormatter
args=('udsoncan.log',)
[handler_nullHandler]
class=NullHandler
formatter=simpleFormatter
args=()
[formatter_simpleFormatter]
format=%(asctime)s [%(levelname)s] %(name)s: %(message)s
datefmt=%Y-%m-%d %H:%M:%S