Thanks to visit codestin.com
Credit goes to launchdarkly.github.io

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

Implemented by

Methods

Methods

  • The debug logger.

    Parameters

    • Rest ...args: any[]

      A sequence of any JavaScript values.

      Rest

    Returns void

  • The error logger.

    Parameters

    • Rest ...args: any[]

      A sequence of any JavaScript values.

      Rest

    Returns void

  • The info logger.

    Parameters

    • Rest ...args: any[]

      A sequence of any JavaScript values.

      Rest

    Returns void

  • The warning logger.

    Parameters

    • Rest ...args: any[]

      A sequence of any JavaScript values.

      Rest

    Returns void

Generated using TypeDoc