Chapter 15. System Administration

When you’re using eXist day-to-day and eventually deploying it into a production environment, there are several topics that are useful to understand, both for those in a developer role and even more so for those in a system administration or DevOps role. The topics covered in this chapter look at some of the tools provided by or used with eXist that aid in stable and performant operation.

Logging

eXist uses Apache log4j as its mechanism for logging information and issues. Log4j provides a logging hierarchy that is configurable without changing the eXist code. Understanding how log4j works and how to configure it can help you get the most out of your eXist logfiles. Log4j provides several levels of logging. When eXist wishes to log a message, it decides at which level to log the message, and your log4j configuration then decides how this message is handled. The levels that log4j provides and at which eXist logs various messages are displayed in Table 15-1, with the most fine-grained at the top.

Table 15-1. Log4j logging levels
LevelDescription
Trace

Used for tracing the execution of complex parts of the eXist code. It is very unlikely that you will need to receive log messages at this level, unless debugging a serious issue.

DebugSimilar to trace, but less fine-grained. Again, it is very unlikely that you will need to receive log messages at this level unless you are investigating an issue with eXist.
InfoUsed for logging status information about eXist for ...

Get eXist now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.