From 116a1f7fc43e18d46cbe8484553c46b8dc4f5de7 Mon Sep 17 00:00:00 2001 From: Alexey Stratulat <alexey.stratulat@demlabs.net> Date: Tue, 6 Aug 2019 21:35:57 +0700 Subject: [PATCH] [*] To simplify the output to the screen, the functions logItDebug, logItInfo, etc. are added. --- src/libdapConnector.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/libdapConnector.py b/src/libdapConnector.py index 3e0924d..69f7efb 100644 --- a/src/libdapConnector.py +++ b/src/libdapConnector.py @@ -43,6 +43,26 @@ def configGetItem(section_path, item_name): return res def configGetItemDefault(section_path, item_name, default): return libdap_python_module.configGetItemDefault(section_path, item_name, default) +def logItDebug(text): + logIt(LogLevel.L_DEBUG, text) +def logItInfo(text): + logIt(LogLevel.L_INFO, text) +def logItNotice(text): + logIt(LogLevel.L_NOTICE, text) +def logItMSG(text): + logIt(LogLevel.L_MSG, text) +def logItDap(text): + logIt(LogLevel.L_DAP, text) +def logItWarning(text): + logIt(LogLevel.L_WARNING, text) +def logItAtt(text): + logIt(LogLevel.L_ATT, text) +def logItError(text): + logIt(LogLevel.L_ERROR, text) +def logItCritical(text): + logIt(LogLevel.L_CRITICAL, text) +def logItTotal(text): + logIt(LogLevel.L_TOTAL, text) -- GitLab