LONG_FMT rework
This commit is contained in:
parent
21bac82e0c
commit
e2392c9f28
@ -49,10 +49,8 @@ __INTERPRETER__ = (3, )
|
|||||||
|
|
||||||
SHORT_FMT = "%(asctime)s: %(name)s - %(levelname)s - %(message)s"
|
SHORT_FMT = "%(asctime)s: %(name)s - %(levelname)s - %(message)s"
|
||||||
""" A short formatter including the most important information"""
|
""" A short formatter including the most important information"""
|
||||||
LONG_FMT = """~~~~(%(levelname)-10s)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
LONG_FMT = SHORT_FMT + \
|
||||||
File "%(pathname)s", line %(lineno)d, in %(funcName)s
|
"\n File \"%(pathname)s\", line %(lineno)d, in %(funcName)s"
|
||||||
%(asctime)s: %(name)s- %(message)s
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""
|
|
||||||
""" A long formatter which results in links to the source code inside Eclipse"""
|
""" A long formatter which results in links to the source code inside Eclipse"""
|
||||||
MAX_FMT = """
|
MAX_FMT = """
|
||||||
%(name)s
|
%(name)s
|
||||||
@ -194,7 +192,7 @@ def appLoggingConfigure(basepath, target, log_name_lvl=[], fmt=SHORT_FMT, ring_l
|
|||||||
})
|
})
|
||||||
if host is not None and port is not None:
|
if host is not None and port is not None:
|
||||||
target_handlers.append('socket')
|
target_handlers.append('socket')
|
||||||
handler['socket']={
|
handler['socket'] = {
|
||||||
'level': 'DEBUG',
|
'level': 'DEBUG',
|
||||||
'class': 'logging.handlers.SocketHandler',
|
'class': 'logging.handlers.SocketHandler',
|
||||||
'host': host,
|
'host': host,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user