JS API Reference
Module: shared/utils/logger/defaultLogger
Table of contents
Type Aliases
Functions
Type Aliases
DefaultLoggerOptions
Ƭ DefaultLoggerOptions: Object
Type declaration
Name | Type | Description |
---|---|---|
disableAutoPrefix | boolean | Disables 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
Name | Type |
---|---|
namespace | string |
opts | DefaultLoggerOptions |
Returns
Defined in
Was this helpful?