@ui5/logger

Description:
  • Interface for the UI5 Tooling logging module
Source:
Interface for the UI5 Tooling logging module

Methods

(static) getLogLevel() → {string}

Description:
  • Gets the current log level
Source:
Returns:
The current log level. Defaults to info
Type
string

(static) getLogger(moduleName) → {@ui5/logger/Logger}

Description:
Source:
Parameters:
Name Type Description
moduleName string Identifier for messages created by the logger. Example: module:submodule:Class
Returns:
Type
@ui5/logger/Logger

(static) isLogLevelEnabled(levelName) → {boolean}

Description:
  • Tests whether the provided log level is enabled by the current log level
Source:
Parameters:
Name Type Description
levelName string Log level to test
Returns:
True if the provided level is enabled
Type
boolean

(static) setLogLevel(levelName)

Description:
  • Sets the standard log level.
    Example: Setting it to perf would suppress all silly and verbose logging, and only show perf, info, warn and error logs.
Source:
Parameters:
Name Type Description
levelName string New log level