new Logger()
This is the central interface in the log4j package. Most logging operations, except configuration, are done through this interface.
- Source:
Methods
(static) getLogger(str) → {module:eclairjs.Logger}
Gets a logger for the specified string.
Parameters:
Name | Type | Description |
---|---|---|
str |
string |
- Source:
Returns:
debug(str)
Logs a message with the specific Marker at the DEBUG level.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | text to be added to the logs |
- Source:
error(str)
Logs a message object with the ERROR level.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | text to be added to the logs |
- Source:
fatal(str)
Logs a message with the specific Marker at the FATAL level.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | text to be added to the logs |
- Source:
getName(str)
Gets the logger name.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | text to be added to the logs |
- Source:
info(str)
Logs a message with the specific Marker at the INFO level.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | text to be added to the logs |
- Source:
trace(str)
Logs a message with the specific Marker at the TRACE level.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | text to be added to the logs |
- Source:
warn(str)
Logs a message with the specific Marker at the WARN level.
Parameters:
Name | Type | Description |
---|---|---|
str |
string | text to be added to the logs |
- Source: