Skip to content

Commit

Permalink
Update src/core/zowe/core_for_zowe_sdk/logger.py
Browse files Browse the repository at this point in the history
Co-authored-by: Timothy Johnson <[email protected]>
Signed-off-by: pem70 <[email protected]>
  • Loading branch information
pem70 and t1m0thyj authored May 29, 2024
1 parent 231296f commit cf4e914
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/zowe/core_for_zowe_sdk/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
for logger in Log.loggers:
logger.setLevel(level)

0 comments on commit cf4e914

Please sign in to comment.