The minimal interface for any object that LDClient can use for logging.

The client uses four log levels, with "error" being the most severe. Each corresponding logger method takes a single string parameter. The logger implementation is responsible for deciding whether to produce output or not based on the level.

interface LDLogger {
    debug: ((message) => void);
    error: ((message) => void);
    info: ((message) => void);
    warn: ((message) => void);
}

Properties

Properties

debug: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

error: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

info: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

warn: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void