|
|
|
|
49
|
|
49
|
|
50
|
SHORT_FMT = "%(asctime)s: %(name)s - %(levelname)s - %(message)s"
|
50
|
SHORT_FMT = "%(asctime)s: %(name)s - %(levelname)s - %(message)s"
|
51
|
""" A short formatter including the most important information"""
|
51
|
""" A short formatter including the most important information"""
|
52
|
-LONG_FMT = """~~~~(%(levelname)-10s)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
53
|
-File "%(pathname)s", line %(lineno)d, in %(funcName)s
|
|
|
54
|
-%(asctime)s: %(name)s- %(message)s
|
|
|
55
|
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""
|
|
|
|
|
52
|
+LONG_FMT = SHORT_FMT + \
|
|
|
53
|
+ "\n File \"%(pathname)s\", line %(lineno)d, in %(funcName)s"
|
56
|
""" A long formatter which results in links to the source code inside Eclipse"""
|
54
|
""" A long formatter which results in links to the source code inside Eclipse"""
|
57
|
MAX_FMT = """
|
55
|
MAX_FMT = """
|
58
|
%(name)s
|
56
|
%(name)s
|
|
|
|
|
194
|
})
|
192
|
})
|
195
|
if host is not None and port is not None:
|
193
|
if host is not None and port is not None:
|
196
|
target_handlers.append('socket')
|
194
|
target_handlers.append('socket')
|
197
|
- handler['socket']={
|
|
|
|
|
195
|
+ handler['socket'] = {
|
198
|
'level': 'DEBUG',
|
196
|
'level': 'DEBUG',
|
199
|
'class': 'logging.handlers.SocketHandler',
|
197
|
'class': 'logging.handlers.SocketHandler',
|
200
|
'host': host,
|
198
|
'host': host,
|