Skip to main content

Class: PrettyConsoleLogger

A logger that logs to the console with pretty colors.

Extends

Constructors

new PrettyConsoleLogger()

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

Parameters

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

Returns

PrettyConsoleLogger

Inherited from

ConsoleLogger.constructor

Defined in

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

Properties

debugEnabled

readonly debugEnabled: boolean = false

Whether debug logging is enabled.

Inherited from

ConsoleLogger.debugEnabled

Defined in

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


infoEnabled

readonly infoEnabled: boolean = true

Whether info logging is enabled.

Inherited from

ConsoleLogger.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

Inherited from

ConsoleLogger.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

Overrides

ConsoleLogger.info

Defined in

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


sql()

sql(sql: string): void

Logs the given SQL query.

Parameters

ParameterTypeDescription
sqlstringThe SQL query to be logged.

Returns

void

Overrides

ConsoleLogger.sql

Defined in

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


warn()

warn(message: any): void

Logs the given message at the warn level.

Parameters

ParameterTypeDescription
messageanyThe message to be logged.

Returns

void

Inherited from

ConsoleLogger.warn

Defined in

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