How to use diagnostic trace events
05 June 2023 02:42 PM
|
|
SummaryDiagnostic 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. Note: Once you have fulfilled your purpose of enabling trace events, make sure you disable them right away as these trace events are fairly verbose and running the server with trace events enabled could slow it down. Enabling Server trace eventsTrace events need to be enabled and added by an administrator using the following steps:
Manual trace eventsIn place of using xdmp:log() you can also create custom trace events. The following steps outline this:
Trace event groupsAdding any of these to your diagnostics will cause the server to output a number of trace events relating to that particular group
Further reading | |
|