Example Using Logging Methods

try {

if(current.u_city.nil()){

  current.u\_city.setValu\(current.u\_attendee.location.city + ", " + current.u\_attendee.location.state\);

}

}

catch(err) {

gs.error("This error occured at runtime: " + err);

}

OUTPUTS: This error occured at runtime: TypeError: Cannot find function setValu in object.

If using logging methods in production, always select the appropiate log type for the event or log message (error, info, warn or debug).

results matching ""

    No results matching ""