Skip to main content

Class: ConsoleLogger

A logger that logs to the console.

Extended by

Implements

Constructors

new ConsoleLogger()

new ConsoleLogger(infoEnabled: boolean, debugEnabled: boolean): ConsoleLogger

Parameters

ParameterTypeDefault valueDescription
infoEnabledbooleantrueWhether info logging is enabled.
debugEnabledbooleanfalseWhether debug logging is enabled.

Returns

ConsoleLogger

Defined in

packages/verse-core/src/utils/logging.ts:92

Properties

debugEnabled

readonly debugEnabled: boolean = false

Whether debug logging is enabled.

Implementation of

Logger.debugEnabled

Defined in

packages/verse-core/src/utils/logging.ts:94


infoEnabled

readonly infoEnabled: boolean = true

Whether info logging is enabled.

Implementation of

Logger.infoEnabled

Defined in

packages/verse-core/src/utils/logging.ts:93

Methods

debug()

debug(message: any): void

Logs the given message at the debug level.

Parameters

ParameterTypeDescription
messageanyThe message to be logged.

Returns

void

Implementation of

Logger.debug

Defined in

packages/verse-core/src/utils/logging.ts:109


info()

info(message: any): void

Logs the given message at the info level.

Parameters

ParameterTypeDescription
messageanyThe message to be logged.

Returns

void

Implementation of

Logger.info

Defined in

packages/verse-core/src/utils/logging.ts:97


sql()

sql(sql: string): void

Logs the given SQL query.

Parameters

ParameterTypeDescription
sqlstringThe SQL query to be logged.

Returns

void

Implementation of

Logger.sql

Defined in

packages/verse-core/src/utils/logging.ts:115


warn()

warn(message: any): void

Logs the given message at the warn level.

Parameters

ParameterTypeDescription
messageanyThe message to be logged.

Returns

void

Implementation of

Logger.warn

Defined in

packages/verse-core/src/utils/logging.ts:103