Skip to main content

Class: ConsoleLogger

A logger implementation that logs messages to the console.

Implements

Constructors

new ConsoleLogger()

new ConsoleLogger(): ConsoleLogger

Returns

ConsoleLogger

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

Implementation of

Logger.debug

Defined in

packages/core/src/services/logger-console.ts:36


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

Implementation of

Logger.error

Defined in

packages/core/src/services/logger-console.ts:69


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

Implementation of

Logger.info

Defined in

packages/core/src/services/logger-console.ts:47


log()

log(
level,
message, ...
meta): void

Logs a message at a specified level.

Parameters

level: string

The logging level.

message: string

The message to log.

• ...meta: any[]

Additional metadata to log.

Returns

void

Defined in

packages/core/src/services/logger-console.ts:91


setLevel()

setLevel(level): void

Sets the logging level.

Parameters

level: LogLevel

The logging level to set.

Returns

void

Implementation of

Logger.setLevel

Defined in

packages/core/src/services/logger-console.ts:16


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

Implementation of

Logger.trace

Defined in

packages/core/src/services/logger-console.ts:25


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

Implementation of

Logger.warn

Defined in

packages/core/src/services/logger-console.ts:58