Browse Source

LONG_FMT rework

master
Dirk Alders 1 year ago
parent
commit
e2392c9f28
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      __init__.py

+ 3
- 5
__init__.py View File

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,

Loading…
Cancel
Save