The OpenFeatureEventEmitter can be used by provider developers to emit events at various parts of the provider lifecycle.

NOTE: Ready and error events are automatically emitted by the SDK based on the result of the initialize method.

Hierarchy (view full)

Constructors

Properties

eventEmitter: EventEmitter<DefaultEventMap> = ...

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

    Parameters

    • logger: Logger

      The logger to be used

    Returns this

    The receiver (this object)