@ui5/logger
Interface for the UI5 CLI logging module
Description: Interface for the UI5 CLI logging module
Source: logger/lib/index.js, line 3
Methods
(static) getLogLevel() → {string}
Description: Gets the current log level
Source: logger/lib/index.js, line 51
Returns:
The current log level. Defaults to info
Type: string
Description: Convenience function to create an instance of @ui5/logger/Logger
Source: logger/lib/index.js, line 18
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: logger/lib/index.js, line 30
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: logger/lib/index.js, line 42
Parameters:
| Name | Type | Description |
|---|---|---|
levelName | string | New log level |

