Interface for the UI5 Tooling logging module
- Description:
- Interface for the UI5 Tooling logging module
- Source:
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:
- Convenience function to create an instance of @ui5/logger/Logger
- 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 toperf
would suppress allsilly
andverbose
logging, and only showperf
,info
,warn
anderror
logs.
- Sets the standard log level.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
levelName |
string | New log level |