Skip to main content

Variable: log

const log: object

Defined in: index.ts:4

Type Declaration

error

error: (...data) => void = console.error

The console.error() static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.

MDN Reference

Parameters

ParameterType
...dataany[]

Returns

void

info

info: (...data) => void = console.info

The console.info() static method outputs a message to the console at the "info" log level. The message is only displayed to the user if the console is configured to display info output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as a small "i" icon next to it.

MDN Reference

Parameters

ParameterType
...dataany[]

Returns

void

warn

warn: (...data) => void = console.warn

The console.warn() static method outputs a warning message to the console at the "warning" log level. The message is only displayed to the user if the console is configured to display warning output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as yellow colors and a warning icon.

MDN Reference

Parameters

ParameterType
...dataany[]

Returns

void