ServiceNow
CAD · Question #31
Which one of the following is NOT a method used for logging messages in a server-side script for a privately-scoped application?
The correct answer is A. gs.log(). gs.print() and gs.log() are older and not available in scoped applications, whereas gs.debug(), gs.info(), gs.warn(), gs.error() work in both scoped applications and global are therefore are more versatile going forward in future versions.
Submitted by rachelw· Apr 18, 2026Designing and Creating an Application
Question
Which one of the following is NOT a method used for logging messages in a server-side script for a privately-scoped application?
Options
- Ags.log()
- Bgs.error()
- Cgs.warn()
- Dgs.debug()
How the community answered
(25 responses)- A96% (24)
- C4% (1)
Explanation
gs.print() and gs.log() are older and not available in scoped applications, whereas gs.debug(), gs.info(), gs.warn(), gs.error() work in both scoped applications and global are therefore are more versatile going forward in future versions.
Topics
#Server-side scripting#Logging#Privately-scoped applications#gs object
Community Discussion
No community discussion yet for this question.