Constructor
new Logger(options)
Creates an instance of the Logger.
Name | Type | Description |
---|---|---|
options | LoggerOptions | Configuration options for the logger. |
- Source
Methods
close()
Closes any resources used by the logger.
For SQLite logging, this method ensures the database connection is properly terminated.
- Source
close()
Closes any resources used by the logger.
For SQLite logging, this method ensures the database connection is properly terminated.
- Source
log(level, message)
Logs a message with a specified severity level.
Name | Type | Description |
---|---|---|
level | string | The severity level (e.g., 'info', 'warn', 'error', 'debug'). |
message | string | The log message to be recorded. |
- Source
log(level, message)
Logs a message with a specified severity level.
Name | Type | Description |
---|---|---|
level | string | The severity level (e.g., 'info', 'warn', 'error', 'debug'). |
message | string | The log message to be recorded. |
- Source