MarkLogic 12 EA 1 Product Documentation
xdmp.traceEnabled

xdmp.traceEnabled(
   name as String
) as Boolean

Summary

Returns whether or not a trace event is enabled.

Parameters
name The trace event name.

Example

const query = cts.wordQuery('hello');
if (xdmp.traceEnabled("JSearch Query")) {
  console.debug(query)
}
Powered by MarkLogic Server | Terms of Use | Privacy Policy