Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Writing to the debug log

Log in to subscribe to topics and get notified when content changes.

Writing to the debug log

To write to the debug log in your client-side JavaScript, or UI policies, make a call to the global function jslog().

An example of using jslog() in JavaScript:
function logData (r ) {
    lastLogDate  = r. responseXML. documentElement. getAttribute ( "last_log_entry" ) ; var items  = r. responseXML. getElementsByTagName ( "log" ) ;
    jslog ( "response=" + r. responseText ) ; }

Additionally, when client scripts run, the name of the client script and timing information is displayed. This can be useful in determining which scripts are running and whether they are impacting performance.

Feedback