What is not a method used for logging messages in a server-side script for a privately scoped application?

Prepare effectively for the ServiceNow CAD certification. Study with detailed questions and explanations. Enhance your skills and knowledge for success in your exam!

Multiple Choice

What is not a method used for logging messages in a server-side script for a privately scoped application?

Explanation:
GlideSystem logging in server-side scripts uses specific methods to categorize messages by severity. The standard options are gs.info for general information, gs.debug for verbose debugging, gs.warn for warnings, and gs.error for errors. These are the recognized ways to write logs from server-side code in ServiceNow, including in privately scoped applications. The method gs.log is not part of the documented server-side logging API for scoped apps, so it’s not used to record messages. When you log, you should choose the appropriate existing method (info, debug, warn, or error) based on the importance and usefulness of the message. This keeps logs organized and filterable in the system logs.

GlideSystem logging in server-side scripts uses specific methods to categorize messages by severity. The standard options are gs.info for general information, gs.debug for verbose debugging, gs.warn for warnings, and gs.error for errors. These are the recognized ways to write logs from server-side code in ServiceNow, including in privately scoped applications.

The method gs.log is not part of the documented server-side logging API for scoped apps, so it’s not used to record messages. When you log, you should choose the appropriate existing method (info, debug, warn, or error) based on the importance and usefulness of the message. This keeps logs organized and filterable in the system logs.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy