Ankit Goel
Ankit Goel

Reputation: 173

Marklogic Logging Customizations

I am exploring logging in MLv8 and discovered we can set certain log levels and rotation on log files through the ML's admin console. But coudn't find answers to some of the customization's which were required for us:

Upvotes: 1

Views: 504

Answers (1)

Justin Makeig
Justin Makeig

Reputation: 2137

There are no facilities to customize the default file logger that’s built into MarkLogic. However, in addition to the ErrorLog.txt you can also send log messages to the system logger (syslog on *NIX). From there, you can use all of the downstream logging tools designed for system logs. There’s a section in the docs that covers configuration of the system logger. (I even built a proof-of-conept that will save syslog messages as JSON to a MarkLogic database.)

Upvotes: 3

Related Questions