Interface IDiagnosticLogger

Hierarchy

  • IDiagnosticLogger

Implemented by

Properties

consoleLoggingLevel: (() => number)

Type declaration

    • (): number
    • 0: OFF 1: only critical (default) 2: critical + info

      Returns number

The internal logging queue

Methods

  • This will write a debug message to the console if possible

    Parameters

    • message: string

      {string} - The debug message

    Returns void

  • This will write an error to the console if possible. Provided by the default DiagnosticLogger instance, and internally the SDK will fall back to warnToConsole, however, direct callers MUST check for its existence on the logger as you can provide your own IDiagnosticLogger instance.

    Parameters

    • message: string

      The error message

    Returns void

  • Logs a message to the internal queue.

    Parameters

    • severity: number

      The severity of the log message

    • message: _InternalLogMessage

      The message to log.

    Returns void

  • Resets the internal message count

    Returns void

  • This method will throw exceptions in debug mode or attempt to log the error as a console warning.

    Parameters

    • severity: number

      The severity of the log message

    • msgId: number
    • msg: string
    • Optional properties: Object
    • Optional isUserAct: boolean

    Returns void

  • Unload and remove any state that this IDiagnosticLogger may be holding, this is generally called when the owning SDK is being unloaded.

    Parameters

    • Optional isAsync: boolean

      Can the unload be performed asynchronously (default)

    Returns void | IPromise<void>

    If the unload occurs synchronously then nothing should be returned, if happening asynchronously then the function should return an IPromise / Promise to allow any listeners to wait for the operation to complete.

  • Optional Callback hook to allow the diagnostic logger to update it's configuration

    Parameters

    Returns void

  • This will write a warning to the console if possible

    Parameters

    • message: string

      The warning message

    Returns void

Generated using TypeDoc