Scoped GlideSystem - warn(String message, Object parm1, Object parm2, Object parm3, Object parm4, Object parm5)

Writes a warning message to the system log.

Table 1. Parameters
Name Type Description
message String The log message with place holders for any variable arguments.
param1 Object (Optional) First variable argument.
param2 Object (Optional) Second variable argument.
param3 Object (Optional) Third variable argument.
param4 Object (Optional) Fourth variable argument.
param5 Object (Optional) Fifth variable argument.
Table 2. Returns
Type Description
void
gs.warn("This is a warning");
var myFirstName = "Abel";
var myLastName = "Tuter";
gs.warn("This is a warning from {0}.{1}", myFirstName, myLastName);
Output:
This is a warning
This is a warning from Abel.Tuter