- Source:
Methods
LoggingSeverity() → {LoggingSeverity}
Get LoggingSeverity enum.
- Source:
Returns:
Return LoggingSeverity enum.
- Type
- LoggingSeverity
debug(message) → {bool}
Log a message with the DEBUG severity.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | message to be logged. |
- Source:
Returns:
Return true if the message has been logged.
- Type
- bool
error(message) → {bool}
Log a message with the ERROR severity.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | message to be logged. |
- Source:
Returns:
Return true if the message has been logged.
- Type
- bool
fatal(message) → {bool}
Log a message with the FATAL severity.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | message to be logged. |
- Source:
Returns:
Return true if the message has been logged.
- Type
- bool
info(message) → {bool}
Log a message with the INFO severity.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | message to be logged. |
- Source:
Returns:
Return true if the message has been logged.
- Type
- bool
loggerEffectiveLevel() → {LoggingSeverity}
Get the logging severity level.
- Source:
Returns:
- The severity level of the logger.
- Type
- LoggingSeverity
name() → {string}
Get name of the logger.
- Source:
Returns:
logger's name.
- Type
- string
setLoggerLevel(level) → {undefined}
Set the logging severity level.
Parameters:
Name | Type | Description |
---|---|---|
level |
LoggingSeverity | The logging severity level. |
- Source:
Returns:
- Type
- undefined
warn(message) → {bool}
Log a message with the WARN severity.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | message to be logged. |
- Source:
Returns:
Return true if the message has been logged.
- Type
- bool
(static) getLogger(name) → {Logging}
Create a logger by name.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | name of the logger. |
- Source:
Returns:
Return the logger object.
- Type
- Logging