nerdexam
ServiceNow

CAD · Question #268

In a privately-scoped application, which methods are used for logging messages in server-side scripts? (Choose 2 answers)

The correct answer is A. gs.log(): This method logs a message to the system log (syslog table). It is a general-purpose E. gs.info(): This method logs informational messages to the system log. It is functionally similar. In ServiceNow scoped applications, the GlideSystem (gs) logging methods available are gs.log(), gs.info(), gs.warn(), gs.error(), and gs.debug(). (A) gs.log() writes a general message to the system log (syslog table) and is accessible in scoped apps. (E) gs.info() logs…

Submitted by carlos_mx· Apr 18, 2026Designing and Creating an Application

Question

In a privately-scoped application, which methods are used for logging messages in server-side scripts? (Choose 2 answers)

Options

  • Ags.log(): This method logs a message to the system log (syslog table). It is a general-purpose
  • Bgs.error()
  • Cgs.debug()
  • Dgs.logError()
  • Egs.info(): This method logs informational messages to the system log. It is functionally similar

How the community answered

(59 responses)
  • A
    95% (56)
  • C
    2% (1)
  • D
    3% (2)

Explanation

In ServiceNow scoped applications, the GlideSystem (gs) logging methods available are gs.log(), gs.info(), gs.warn(), gs.error(), and gs.debug(). (A) gs.log() writes a general message to the system log (syslog table) and is accessible in scoped apps. (E) gs.info() logs informational messages to the system log - the standard method for general informational logging in scoped applications. Options gs.error() and gs.debug() are valid too, but the question specifies A and E as the intended answers. gs.logError() is a legacy global-scope method not available in scoped applications.

Topics

#Server-side scripting#Logging#gs methods#Scoped applications

Community Discussion

No community discussion yet for this question.

Full CAD Practice