JS API Reference

Module: shared/utils/logger/defaultLogger

Table of contents

Type Aliases

Functions

Type Aliases

DefaultLoggerOptions

Ƭ DefaultLoggerOptions: Object

Type declaration

NameTypeDescription
disableAutoPrefixbooleanDisables prefixing the root namespace with golem-js Default ts false

Defined in

src/shared/utils/logger/defaultLogger.ts:4

Functions

defaultLogger

defaultLogger(namespace, opts?): Logger

Creates a logger that uses the debug library. This logger is used by default by all entities in the SDK.

If the namespace is not prefixed with golem-js:, it will be prefixed automatically - this can be controlled by disableAutoPrefix options.

Parameters

NameType
namespacestring
optsDefaultLoggerOptions

Returns

Logger

Defined in

src/shared/utils/logger/defaultLogger.ts:26

Was this helpful?