MarkLogic 9 Product Documentation
xdmp.requestLogPut

xdmp.requestLogPut(
   key as String,
   value as Object
) as null

Summary

Stores or updates a (key, value) pair for the current request. The (key,value) pair is combined with other monitored meters and logged at the end of a request. When this function is called multiple times for the same key only the value from the last call is retained.

Parameters
key A key. If the key is not unique, the existing value under the key will be replaced with the new value.
value A value to log.

Example


xdmp.requestLogPut("someKey2", {foo:"value1", bar:"value2"})

Powered by MarkLogic Server | Terms of Use | Privacy Policy