xdmp.log( $msg as ValueIterator | Object | String | Array | Null | Number | Boolean, [$level as String?] ) as null
Logs a message to the log file
The log message is sent as soon as this function is called, even if the
program from which it is called has not completed.
|$msg||Message for logging.|
|$level||One of: emergency, alert, critical, error, warning, notice, info, config, debug, fine, finer, or finest. The default level is "info".|
xdmp.log("AAAA"); => () and sends an info-level log message to ErrorLog.txt with the text "AAAA"