Function loggingCallback

  • Register a callback function that will receive logging event information. An absent callback will unregister an existing callback function. The log level defaults to INFO, it can be set to one of ERROR, WARN, INFO, DEBUG, or TRACE.

    Parameters

    • Optional callback: ((level, target, message) => void)
        • (level, target, message): void
        • Parameters

          • level: string
          • target: string
          • message: string

          Returns void

    • Optional level: string

    Returns void

Generated using TypeDoc