Documentation Menu

error Method

Creates a log item with severity ERROR

Definition

error(logObject: any): Logger

Parameters

logObject String or object to be logged, or a function that returns the string or object to be logged (details).

Return Value

The Logger itself.

Examples

This creates a log message "log message" with severity ERROR.

JL().error("log message");