-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog.py
45 lines (45 loc) · 1.43 KB
/
log.py
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
# from http.client import HTTPConnection
# HTTPConnection.debuglevel = 1
class log_config():
common_log_config = {
'version': 1,
'formatters': {
'verbose': {
'format': '%(asctime)s %(name)-12s %(levelname)-8s %(message)s'
}
},
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'formatter': 'verbose',
},
},
'loggers': {
'zeep.transports': {
'level': 'ERROR',
'propagate': True,
'handlers': ['console'],
},
'urllib3':{
'level' : 'ERROR',
'propagate': True,
'handlers': ['console'],
},
'axl' : {
'level' : 'ERROR',
'propagate': True,
'handlers': ['console'],
},
'csdm' : {
'level' : 'ERROR',
'propagate': True,
'handlers': ['console'],
},
'__main__' : {
'level' : 'ERROR',
'propagate': True,
'handlers': ['console'],
}
}
}