CAD · Question #171
Which server-side API debug log method is available for scoped applications?
The correct answer is C. gs.info(). In scoped applications, gs.log() is restricted to the global scope and is not available. The server-side logging methods available to scoped applications are gs.info(), gs.warn(), gs.error(), and gs.debug(). Therefore, gs.info() (C) is the correct answer. gs.print() (B) is not…
Question
Which server-side API debug log method is available for scoped applications?
Options
- Ags.log()
- Bgs.print()
- Cgs.info()
- Dgs.debugLog()
How the community answered
(27 responses)- B7% (2)
- C89% (24)
- D4% (1)
Explanation
In scoped applications, gs.log() is restricted to the global scope and is not available. The server-side logging methods available to scoped applications are gs.info(), gs.warn(), gs.error(), and gs.debug(). Therefore, gs.info() (C) is the correct answer. gs.print() (B) is not a standard GlideSystem method, and gs.debugLog() (D) does not exist as a standard API method.
Topics
Community Discussion
No community discussion yet for this question.