Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LoxerCallbacks

Output stream callbacks for the LoxerOptions

Hierarchy

  • LoxerCallbacks

Methods

Optional devLog

  • Function called when logging in development mode. This callback receives an OutputLox which provides several attributes.

    Parameters

    Returns void

Optional prodLog

  • Function called when logging in production mode. This callback receives an OutputLox which provides several attributes.

    Parameters

    Returns void

Optional prodError

  • Function called when errors are recorded in production mode. This callback provides an ErrorLox which provides the attributes of an OutputLox plus some error specific ones. The provided history is a list of all recent logs until the error was streamed out.

    Parameters

    Returns void

Optional devError

  • Function called when errors are recorded in development mode. This callback provides an ErrorLox which provides the attributes of an OutputLox plus some error specific ones. The provided history is a list of all recent logs until the error was streamed out.

    Parameters

    Returns void

Generated using TypeDoc