Skip to main content

Interface: Logger

Interface for logging messages at various levels.

Methods

debug()

debug(message, ...meta): void

Logs a debug message.

Parameters

message: string

The message to log.

• ...meta: any[]

Additional metadata to log.

Returns

void

Defined in

packages/core/src/services/logger.ts:43


error()

error(messageOrObj, ...meta): void

Logs an error message.

Parameters

messageOrObj: string | Error | Record<string, any>

The message, object, or error to log.

• ...meta: any[]

Additional metadata to log.

Returns

void

Defined in

packages/core/src/services/logger.ts:33


info()

info(messageOrObj, ...meta): void

Logs an informational message.

Parameters

messageOrObj: string | Record<string, any>

The message or object to log.

• ...meta: any[]

Additional metadata to log.

Returns

void

Defined in

packages/core/src/services/logger.ts:19


setLevel()

setLevel(level): void

Sets the logging level.

Parameters

level: LogLevel

The logging level to set.

Returns

void

Defined in

packages/core/src/services/logger.ts:56


trace()?

optional trace(message, ...meta): void

Logs a trace message.

Parameters

message: string

The message to log.

• ...meta: any[]

Additional metadata to log.

Returns

void

Defined in

packages/core/src/services/logger.ts:50


warn()

warn(messageOrObj, ...meta): void

Logs a warning message.

Parameters

messageOrObj: string | Record<string, any>

The message or object to log.

• ...meta: any[]

Additional metadata to log.

Returns

void

Defined in

packages/core/src/services/logger.ts:26