Skip to content

Logging

Billie Simmons edited this page Apr 21, 2023 · 8 revisions

Logging is essential to users and developers alike for troubleshooting and debugging issues. Zowe Explorer has implemented a class for writing logs to the log file and the VS Code output channel Zowe Explorer to be used by developers. This class is called ZoweLogger, call to it will handle writing to both locations in one call and handle writing to log locations according to the log level setting.

Log Levels

  • ZoweLogger.trace - Messages about fine details of the application's behaviour.
  • ZoweLogger.debug - Messages about diagnostic information for troubleshooting.
  • ZoweLogger.info - Messages about routine application operations.
  • ZoweLogger.warn - Messages about potentially harmful occurrences.
  • ZoweLogger.error - Messages about serious problem occurrences.
  • ZoweLogger.fatal - Messages about catastraphic error events.

Zowe Explorer's new extension setting for the log level is zowe.logger, the default value for the setting is INFO. If a developer needs to obtain the log level from the setting ZoweLogger.getLogSetting() can be used.

Clone this wiki locally