Strophe.js
    Preparing search index...

    Variable defaultConst

    default: {
        debug(msg: string): void;
        error(msg: string): void;
        fatal(msg: string): void;
        info(msg: string): void;
        log(level: number, msg: string): void;
        setLogLevel(level: LogLevel): void;
        warn(msg: string): void;
    } = ...

    Type Declaration

    • debug: function
      • Log a message at the Strophe.LOG_LEVELS.DEBUG level.

        Parameters

        • msg: string

          The log message.

        Returns void

    • error: function
      • Log a message at the Strophe.LOG_LEVELS.ERROR level.

        Parameters

        • msg: string

          The log message.

        Returns void

    • fatal: function
      • Log a message at the Strophe.LOG_LEVELS.FATAL level.

        Parameters

        • msg: string

          The log message.

        Returns void

    • info: function
      • Log a message at the Strophe.LOG_LEVELS.INFO level.

        Parameters

        • msg: string

          The log message.

        Returns void

    • log: function
      • Please note that data sent and received over the wire is logged via Strophe.Connection#rawInput|Strophe.Connection.rawInput() and Strophe.Connection#rawOutput|Strophe.Connection.rawOutput().

        The different levels and their meanings are

        DEBUG - Messages useful for debugging purposes. INFO - Informational messages. This is mostly information like 'disconnect was called' or 'SASL auth succeeded'. WARN - Warnings about potential problems. This is mostly used to report transient connection errors like request timeouts. ERROR - Some error occurred. FATAL - A non-recoverable fatal error occurred.

        Parameters

        • level: number

          The log level of the log message. This will be one of the values in Strophe.LOG_LEVELS.

        • msg: string

          The log message.

        Returns void

    • setLogLevel: function
      • Library consumers can use this function to set the log level of Strophe. The default log level is Strophe.LogLevel.INFO.

        Parameters

        Returns void

        Strophe.setLogLevel(Strophe.LogLevel.DEBUG);
        
    • warn: function
      • Log a message at the Strophe.LOG_LEVELS.WARN level.

        Parameters

        • msg: string

          The log message.

        Returns void