Scoped GlideSystem Logging Methods
Scoped GlideSystem logging methods are available for scripts in private application scopes.
debug() - sets the log Level to "Debug". Use to log informational mesages useful for debugging.
error() - sets the log Level to "Error". Use to log messages that might stil allow the system to continue running.
info() - sets the log Level to "Information". Use to log informational messages describing progress.
warn() - sets the log Level to "Warning". Use to log potentially harmful messages.
isDebugging() - determines if debugging is active for a specific scope.
Navigate to System Logs > System Log > All to locate gs.error(), gs.warn() and gs.info() output. These messages along with messages from gs.debug() are also located at the bottow of a form when System Debugging is turned on.