Loading TOC...

xdmp.log

xdmp.log(
   $msg as Sequence | Object | String | Array | Null | Number | Boolean,
   [$level as String?]
) as null

Summary

Logs a message into a specific app server error log file. System and Application logs are split and logged separately. If the function is executed on an app server at port 8888, the message will appear in <install_dir>/Logs/8888_ErrorLog.txt and not in <install_dir>/Logs/ErrorLog.txt. The <install_dir> is the location of the MarkLogic install directory. The port number is the port number of the current App Server or "TaskServer" if the current request is running on the Task Server. The log message is sent as soon as this function is called, even if the program from which it is called has not completed.

Parameters
$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".

Example

xdmp.log("AAAA");
=> () and logs an info-level log message with the text "AAAA"

Comments

  • This kind of idea is really useful and really helpful for the other people who are interested in earning some beneficial techniques that could totally guide them a lot. Thus, adding this to their knowledge might be a good thing for them and might also be one of the best thing that they could earn for their future.
Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy