GlideSystem (gs) functions like gs.info(), gs.log(), gs.debug() present in a script do not work when its called by a filter/dynamic filter.
This is because of the script sandboxing feature of High Security Settings plugin. Any script executed from a filter is sandboxed for security purposes.
Only a small subset of GlideSystem (gs) methods are available in this context. The GlideSystem sandbox does not have access to the following methods:
The following three methods do exist in the GlideSystem sandbox but are disabled/blocked by default.
To enable/unblock the below methods in the GlideSystem sandbox, the value of system property "glide.security.sandbox_no_logging" can be updated to "false".