From e2392c9f28d88ee54463681850acf95ae496c9a0 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Mon, 19 Dec 2022 10:28:20 +0100 Subject: [PATCH] LONG_FMT rework --- __init__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/__init__.py b/__init__.py index 8d40ead..1ad14dd 100644 --- a/__init__.py +++ b/__init__.py @@ -49,10 +49,8 @@ __INTERPRETER__ = (3, ) SHORT_FMT = "%(asctime)s: %(name)s - %(levelname)s - %(message)s" """ A short formatter including the most important information""" -LONG_FMT = """~~~~(%(levelname)-10s)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -File "%(pathname)s", line %(lineno)d, in %(funcName)s -%(asctime)s: %(name)s- %(message)s -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~""" +LONG_FMT = SHORT_FMT + \ + "\n File \"%(pathname)s\", line %(lineno)d, in %(funcName)s" """ A long formatter which results in links to the source code inside Eclipse""" MAX_FMT = """ %(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: target_handlers.append('socket') - handler['socket']={ + handler['socket'] = { 'level': 'DEBUG', 'class': 'logging.handlers.SocketHandler', 'host': host,