Skip to main content

Logger

Hierarchy

Index

Constructors

constructor

Properties

readonlyoptions

options: Readonly<Required<LoggerOptions>>

Validated and configured options.

Methods

blueprint

configure

  • Set an options object by merging the new partial and existing options with the defined blueprint, while running all validation checks. Freeze and return the options object.

    object.configure({ name: 'Boost' });

    object.configure((prevOptions) => ({
    nestedObject: {
    ...prevOptions.nestedObject,
    some: 'value',
    },
    }));

disable

  • disable(): void
  • Disable all logger messages from logging to the console.

enable

  • enable(): void
  • Enable all logger messages to log the console.

isAllowed

log