From cf4e914f8075a42cc1fc3b682817d50b14f65aaa Mon Sep 17 00:00:00 2001 From: pem70 <105866197+pem70@users.noreply.github.com> Date: Wed, 29 May 2024 09:02:39 -0400 Subject: [PATCH] Update src/core/zowe/core_for_zowe_sdk/logger.py Co-authored-by: Timothy Johnson Signed-off-by: pem70 <105866197+pem70@users.noreply.github.com> --- src/core/zowe/core_for_zowe_sdk/logger.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/zowe/core_for_zowe_sdk/logger.py b/src/core/zowe/core_for_zowe_sdk/logger.py index f0d81bde..85276ddf 100644 --- a/src/core/zowe/core_for_zowe_sdk/logger.py +++ b/src/core/zowe/core_for_zowe_sdk/logger.py @@ -15,6 +15,12 @@ class Log: datefmt="%m/%d/%Y %I:%M:%S %p", ) + loggers = [] + @staticmethod + def registerLogger(name: string): + Log.loggers.append(logging.getLogger(name)) + @staticmethod def setLoggerLevel(level: int): - logging.root.setLevel(level) \ No newline at end of file + for logger in Log.loggers: + logger.setLevel(level) \ No newline at end of file