xdmp:log-flush() as empty-sequence()
Flush the log of the specific app server error log file.
xdmp:log-flush()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.