warnEx

[ Funktion ]

function warn(
    message: string | any,
    ...optionalParameters: any[]
): void;

Issues a warning on the browser console if the constant TCHMI_CONSOLE_LOG_LEVEL is greater than or equal to 2.

Parameter

Name

Type

Description

message

string, any

The message text that is displayed in the browser console.

optionalParameters [ rest of parameters ]

any[]

Additional parameters that are passed to console.error.

Return value

Type

Description

void

No return value

warnEx 1:

Available from version 1.12

Sample - JavaScript

let variable = { complex: true, easy: 'debugging' };
TcHmi.Log.warnEx('My warning text for variable:', variable);