xdmp:trace-enabled( $name as xs:string ) as xs:boolean
Returns whether or not a trace event is enabled.
Parameters | |
---|---|
name | The trace event name. |
xquery version "1.0-ml"; let $query := cts:word-query("hello") return if (xdmp:trace-enabled("Query Trace")) then xdmp:log($query) else ()