- Since:
- 2.11
Members
(static, readonly) ERROR
This log level logs only errors.
(static, readonly) INFO
This log level logs everything except logs for debug. This is the default level.
(static) level
Gets the current log level as a number.
(static, readonly) LOG
This log level logs everything, including logs for debug.
(static, readonly) NONE
This log level logs nothing at all.
(static, readonly) WARN
This log level logs only errors and warnings.
Methods
(static) disable(prefix)
Disables all loggers with a given prefix (unless a more specific prefix is still enabled).
Parameters:
Name | Type | Description |
---|---|---|
prefix |
string | The logger prefix to disable |
(static) enable(prefix)
Enables all loggers with a given prefix.
Parameters:
Name | Type | Description |
---|---|---|
prefix |
string | The logger prefix to enable |
(static) hideDeprecations()
Only available with backward compatible Webcom libraries.
Filters out deprecation warning logs.
- Since:
- 3.0
(static) hideTimestamp()
Prevents all loggers from prefixing their outputs with a timestamp.
(static) setPrefixWidth(width)
Sets the prefix width (not including the timestamp if shown) of the outputs produced by the loggers.
Parameters:
Name | Type | Description |
---|---|---|
width |
number | The width for displaying logger names |
(static) showDeprecations()
Only available with backward compatible Webcom libraries.
Makes deprecation warning logs visible.
- Since:
- 3.0
(static) showTimestamp()
Makes all loggers prefix their outputs with a timestamp.