Options
All
  • Public
  • Public/Protected
  • All
Menu

The LaunchDarkly client logger interface.

The LDOptions.logger property accepts any object that conforms to this interface. The SDK only uses four logging levels: error, warn, info, and debug. It will call the corresponding method of the LDLogger either with a single string argument, or with a format string and variable arguments in the format used by Node's util.format().

The Winston logging package provides a logger that conforms to this interface, so if you have created a logger with Winston, you can simply put it into the LDOptions.logger property.

If you do not provide a logger object, the SDK uses the basicLogger implementation with a minimum level of info.

Hierarchy

  • LDLogger

Index

Methods

  • debug(...args: any[]): void
  • The debug logger.

    Parameters

    • Rest ...args: any[]

      A sequence of any JavaScript values.

    Returns void

  • error(...args: any[]): void
  • The error logger.

    Parameters

    • Rest ...args: any[]

      A sequence of any JavaScript values.

    Returns void

  • info(...args: any[]): void
  • The info logger.

    Parameters

    • Rest ...args: any[]

      A sequence of any JavaScript values.

    Returns void

  • warn(...args: any[]): void
  • The warning logger.

    Parameters

    • Rest ...args: any[]

      A sequence of any JavaScript values.

    Returns void

Generated using TypeDoc