Implements

Constructors

Properties

identifier: string

The internal logging queue

Methods

  • 0: OFF (default) 1: CRITICAL 2: >= WARNING

    Returns number

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

    Parameters

    • message: string

      The debug message

    Returns void

  • This will write an error to the console if possible

    Parameters

    • message: string

      The warning 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
    • Optionalproperties: Object
    • OptionalisUserAct: 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

    • OptionalisAsync: 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.

  • This will write a warning to the console if possible

    Parameters

    • message: string

      The warning message

    Returns void