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…
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)- A90% (18)
- C5% (1)
- E5% (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
Community Discussion
No community discussion yet for this question.