Skip to main content
Version: Next

Class: Logger

core.Logger

Constructors#

constructor#

new Logger(logger, debugMode?)

Parameters#

NameTypeDefault value
logger(message: string) => voidundefined
debugModeboolean | LoggerNamespace[]false

Defined in#

packages/core/src/utils/Logger.ts:3

Properties#

debugMode#

debugMode: boolean | LoggerNamespace[] = false

Methods#

isEnabled#

isEnabled(namespace): boolean

Parameters#

NameType
namespaceLoggerNamespace

Returns#

boolean

Defined in#

packages/core/src/utils/Logger.ts:28


log#

log(namespace, message): void

Logs a message inside given namespace.

Parameters#

NameType
namespaceLoggerNamespace
messagestring

Returns#

void

Defined in#

packages/core/src/utils/Logger.ts:11


setDebugMode#

setDebugMode(debugMode): void

Sets active namespaces. Pass true to enable all logging.

Parameters#

NameType
debugModeboolean | LoggerNamespace[]

Returns#

void

Defined in#

packages/core/src/utils/Logger.ts:24