console.assert( value as Boolean, [message as xs.anyAtomicType], [valueN as xs.anyAtomicType,...] ) as null
If value is true, do nothing.
If value is false, logs a message to the App Server log file
<install_dir>/Logs/<port>_ErrorLog.txt
; where
<install_dir>
is the MarkLogic install directory,
and <port>
is the port number of the current App
Server or "TaskServer" if the current request is running on the Task
Server.
const count = 5; console.assert(count==5,"hello world");
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.