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:

ParameterTypeDescription
messageanyThe message to log.

Return type: void


.debug ()

Log a message at the DEBUG level.

Signature:

debug(...message: any[]): void;

Parameters:

ParameterTypeDescription
messageanyThe message to log.

Return type: void


.error ()

Log a message at the ERROR level.

Signature:

error(...message: any[]): void;

Parameters:

ParameterTypeDescription
messageanyThe message to log.

Return type: void


.hasLevel ()

Check whether a certain level is enabled.

Signature:

hasLevel(level: LoggerLevel): boolean;

Parameters:

ParameterTypeDescription
levelLoggerLevelThe level to check.

Return type: Boolean


.info ()

Log a message at the INFO level.

Signature:

info(...message: any[]): void;

Parameters:

ParameterTypeDescription
messageanyThe message to log.

Return type: void


.log ()

The base logging function.

Signature:

log(level: LoggerLevel, ...message: any[]): void;

Parameters:

ParameterTypeDescription
levelLoggerLevelThe level at which the message should be logged.
messageanyThe message to log.

Return type: void


.trace ()

Log a message at the TRACE level.

Signature:

trace(...message: any[]): void;

Parameters:

ParameterTypeDescription
messageanyThe message to log.

Return type: void


.warn ()

Log a message at the WARN level.

Signature:

warn(...message: any[]): void;

Parameters:

ParameterTypeDescription
messageanyThe message to log.

Return type: void