DebugLogger: (
    type: string,
    debugName: string,
    eventName?: EventName,
    eventData?: EventArgs,
) => void

Emittery can collect and log debug information.

To enable this feature set the DEBUG environment variable to emittery or *. Additionally, you can set the static isDebugEnabled variable to true on the Emittery class, or myEmitter.debug.enabled on an instance of it for debugging a single instance.

See API for more information on how debugging works.

Type declaration

    • (
          type: string,
          debugName: string,
          eventName?: EventName,
          eventData?: EventArgs,
      ): void
    • Parameters

      Returns void