ILogger interface
The basic logger interface for the logging plugins to be used.
Signature:
export interface ILogger
Properties
level
The logger's level, only messages above or equal to this level will be logged.
Type: LoggerLevel
Methods
.critical ()
Log a message at the CRITICAL level.
Signature:
critical(...message: any[]): void;
Parameters:
Parameter | Type | Description |
---|---|---|
message | any | The message to log. |
Return type: void
.debug ()
Log a message at the DEBUG level.
Signature:
debug(...message: any[]): void;
Parameters:
Parameter | Type | Description |
---|---|---|
message | any | The message to log. |
Return type: void
.error ()
Log a message at the ERROR level.
Signature:
error(...message: any[]): void;
Parameters:
Parameter | Type | Description |
---|---|---|
message | any | The message to log. |
Return type: void
.hasLevel ()
Check whether a certain level is enabled.
Signature:
hasLevel(level: LoggerLevel): boolean;
Parameters:
Parameter | Type | Description |
---|---|---|
level | LoggerLevel | The level to check. |
Return type: Boolean
.info ()
Log a message at the INFO level.
Signature:
info(...message: any[]): void;
Parameters:
Parameter | Type | Description |
---|---|---|
message | any | The message to log. |
Return type: void
.log ()
The base logging function.
Signature:
log(level: LoggerLevel, ...message: any[]): void;
Parameters:
Parameter | Type | Description |
---|---|---|
level | LoggerLevel | The level at which the message should be logged. |
message | any | The message to log. |
Return type: void
.trace ()
Log a message at the TRACE level.
Signature:
trace(...message: any[]): void;
Parameters:
Parameter | Type | Description |
---|---|---|
message | any | The message to log. |
Return type: void
.warn ()
Log a message at the WARN level.
Signature:
warn(...message: any[]): void;
Parameters:
Parameter | Type | Description |
---|---|---|
message | any | The message to log. |
Return type: void