xdmp.traceEnabled( name as String ) as Boolean
Returns whether or not a trace event is enabled.
const query = cts.wordQuery('hello'); if (xdmp.traceEnabled("JSearch Query")) { console.debug(query) }
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.