Skip to main content
Version: 4.5

Class: Logger#

core.Logger

Constructors#

constructor#

+ new Logger(logger: (message: string) => void, debugMode?: boolean | LoggerNamespace[]): Logger

Parameters:#

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

Returns: Logger

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

Properties#

debugMode#

debugMode: boolean | LoggerNamespace[]= false

Methods#

isEnabled#

isEnabled(namespace: LoggerNamespace): boolean

Parameters:#

NameType
namespaceLoggerNamespace

Returns: boolean

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


log#

log(namespace: LoggerNamespace, message: string): 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: boolean | LoggerNamespace[]): 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

Last updated on by Renovate Bot