Converse converse.js

Namespace: log

log

The log namespace

Source:

Methods

log(message, level)

Logs messages to the browser's developer console. Available loglevels are 0 for 'debug', 1 for 'info', 2 for 'warn', 3 for 'error' and 4 for 'fatal'. When using the 'error' or 'warn' loglevels, a full stacktrace will be logged as well.

Parameters:
Name Type Description
message string | Error

The message to be logged

level number

The loglevel which allows for filtering of log messages

Source:

log(message, level)

Logs messages to the browser's developer console. Available loglevels are 0 for 'debug', 1 for 'info', 2 for 'warn', 3 for 'error' and 4 for 'fatal'. When using the 'error' or 'warn' loglevels, a full stacktrace will be logged as well.

Parameters:
Name Type Description
message string | Error

The message to be logged

level number

The loglevel which allows for filtering of log messages

Source:

setLogLevel(level)

The the log-level, which determines how verbose the logging is.

Parameters:
Name Type Description
level number

The loglevel which allows for filtering of log messages

Source:

setLogLevel(level)

The the log-level, which determines how verbose the logging is.

Parameters:
Name Type Description
level number

The loglevel which allows for filtering of log messages

Source:

log

The log namespace

Source:

Methods

log(message, level)

Logs messages to the browser's developer console. Available loglevels are 0 for 'debug', 1 for 'info', 2 for 'warn', 3 for 'error' and 4 for 'fatal'. When using the 'error' or 'warn' loglevels, a full stacktrace will be logged as well.

Parameters:
Name Type Description
message string | Error

The message to be logged

level number

The loglevel which allows for filtering of log messages

Source:

log(message, level)

Logs messages to the browser's developer console. Available loglevels are 0 for 'debug', 1 for 'info', 2 for 'warn', 3 for 'error' and 4 for 'fatal'. When using the 'error' or 'warn' loglevels, a full stacktrace will be logged as well.

Parameters:
Name Type Description
message string | Error

The message to be logged

level number

The loglevel which allows for filtering of log messages

Source:

setLogLevel(level)

The the log-level, which determines how verbose the logging is.

Parameters:
Name Type Description
level number

The loglevel which allows for filtering of log messages

Source:

setLogLevel(level)

The the log-level, which determines how verbose the logging is.

Parameters:
Name Type Description
level number

The loglevel which allows for filtering of log messages

Source: