Application-Specific Logging
MarkLogic 9 and later provide application-specific access to logging. Instead of logging all errors to ErrorLog.txt
, the xdmp:log
function now writes to an app-server-specific log file - for example 8000_ErrorLog.txt
or 8020_ErrorLog.txt
. Anything event running on the task server is logged to TaskServer_ErrorLog.txt
. The ErrorLog.txt
file is now for MarkLogic “system” logging only.
Splitting the log files in this manner enables customer log files (which could potentially contain confidential information) to be separated from system log files. This helps ensure the privacy of customer data when they interact with Support and use the new Telemetry feature.
In a UNIX environment you can watch the multiple log files using something like this:
tail -f /path/file1 /path/file2 etc.