Settings which control the log output of the library.

Deprecated

This type is deprecated and will be removed in a future version. Use the logLevel and logHandler client options instead.

Hierarchy

  • LogInfo

Properties

Properties

handler?: ((msg: string) => void)

Type declaration

    • (msg: string): void
    • Controls the log output of the library. This is a function to handle each line of log output. If you do not set this value, then console.log will be used.

      Deprecated

      This property is deprecated and will be removed in a future version. Use the logHandler client option instead.

      Parameters

      • msg: string

        The log message emitted by the library.

      Returns void

level?: number

Controls the verbosity of the logs output from the library. Valid values are: 0 (no logs), 1 (errors only), 2 (errors plus connection and channel state changes), 3 (high-level debug output), and 4 (full debug output).

Deprecated

This property is deprecated and will be removed in a future version. Use the logLevel client option instead.

Generated using TypeDoc