How to use diagnostic trace events
12 June 2012 01:25 PM
Diagnostic trace events can be particularly useful in situations where you need access to more internal diagnostic information than is available in the standard MarkLogic ErrorLog or in the Operating System logs.
The host / cluster can be configured to output trace events and from the point at which these diagnostics are enabled and added, the server will write information to the ErrorLog every time the diagnostic event is encountered.
Enabling Server trace events
Trace events need to be enabled and added by an administrator using the following steps:
Manual trace events
In place of using xdmp:log() you can also create custom trace events. The following steps outline this:
Trace event groups
Adding any of these to your diagnostics will cause the server to output a number of trace events relating to that particular group