nerdexam
ServiceNow

CAD · Question #139

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.info() D. gs.error(). In privately-scoped ServiceNow applications, the permitted GlideSystem logging methods are gs.info(), gs.warn(), gs.error(), and gs.debug(). Of the options listed, gs.info() (A) and gs.error() (D) are valid and correct. gs.iog() (C) does not exist - it is likely a typo…

Submitted by hans_de· 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.info()
  • Bgs.debug()
  • Cgs.iog()
  • Dgs.error()
  • Egs.logError()

How the community answered

(20 responses)
  • A
    90% (18)
  • C
    5% (1)
  • E
    5% (1)

Explanation

In privately-scoped ServiceNow applications, the permitted GlideSystem logging methods are gs.info(), gs.warn(), gs.error(), and gs.debug(). Of the options listed, gs.info() (A) and gs.error() (D) are valid and correct. gs.iog() (C) does not exist - it is likely a typo. gs.logError() (E) is not a valid GlideSystem method. gs.debug() (B) exists but is not among the correct answers here because in scoped apps gs.debug() only outputs when the scope is explicitly in debug mode, making it unsuitable as a general-purpose logging method compared to gs.info() and gs.error().

Topics

#Server-side scripting#Scoped applications#Logging API#gs object

Community Discussion

No community discussion yet for this question.

Full CAD Practice