Interface Logger

The logging system for Interacto

interface Logger {
    frontVersion: undefined | string;
    serverAddress: undefined | string;
    sessionID: string;
    writeConsole: boolean;
    logBindingEnd(bindingName, cancelled): void;
    logBindingErr(msg, ex, bindingName?): void;
    logBindingMsg(msg, bindingName?): void;
    logBindingStart(bindingName): void;
    logCmdErr(msg, ex, cmdName?): void;
    logCmdMsg(msg, cmdName?): void;
    logInteractionErr(msg, ex, interactionName?): void;
    logInteractionMsg(msg, interactionName?): void;
}

Implemented by

Properties

frontVersion: undefined | string

The version of the app

serverAddress: undefined | string

The HTTP address of the logging server

sessionID: string

The ID of the current session

writeConsole: boolean

States whether messages are logged in the command

Methods

  • Parameters

    • bindingName: string
    • cancelled: boolean

    Returns void

  • Logs binding errors. The logging system does not decide the information messages to log. Errors are always logged in.

    Parameters

    • msg: string

      The message to log

    • ex: unknown

      The error

    • Optional bindingName: string

      The name of the binding to log

    Returns void

  • Logs binding information messages. The logging system does not decide the information messages to log. This is the job of each binding in which we can log information or not.

    Parameters

    • msg: string

      The message to log

    • Optional bindingName: string

      The name of the binding to log

    Returns void

  • Logs command errors. The logging system does not decide the information messages to log. Errors are always logged in.

    Parameters

    • msg: string

      The message to log

    • ex: unknown

      The error

    • Optional cmdName: string

      The name of the command

    Returns void

  • Logs command production information messages. The logging system does not decide the information messages to log. This is the job of each binding in which we can log command information or not.

    Parameters

    • msg: string

      The message to log

    • Optional cmdName: string

      The name of the command

    Returns void

  • Logs interaction errors. The logging system does not decide the information messages to log. Errors are always logged in.

    Parameters

    • msg: string

      The message to log

    • ex: unknown

      The error

    • Optional interactionName: string

      The name of the interaction

    Returns void

  • Logs interaction information messages. The logging system does not decide the information messages to log. This is the job of each interaction (and its FSM) in which we can log information or not.

    Parameters

    • msg: string

      The message to log

    • Optional interactionName: string

      The interaction name

    Returns void

Generated using TypeDoc