Documentation Menu

warn Method

Creates a log item with severity WARN

Definition

warn(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 WARN.

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