Constructor
new Logger(maxSizeopt)
Construct the logger.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
maxSize |
number |
<optional> |
100 | Maximum number of messages retained. |
Members
(readonly) markdown :string
Markdown list representation of the log.
Type:
- string
Methods
clear()
Clear the log.
debug(message)
Debug log message. The message is still sent to the console.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Text to add to the log. |
error(message)
Error log message. The message is still sent to the console.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Text to add to the log. |
info(message)
Info log message. The message is still sent to the console.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Text to add to the log. |
log(message)
Normal log message. The message is still sent to the console.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Text to add to the log. |
warn(message)
Warning log message. The message is still sent to the console.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string | Text to add to the log. |