Repository Management with Nexus
5.7. Log Files and Configuration

5.7. Log Files and Configuration

The Logs and Config Files link is only visible to Administrative users under the Views menu. Click on this option brings up the dialog shown in Figure 5.18, “Browsing Nexus Logs and Configuration”. From this screen you can view the following log and configuration files by clicking on the drop down selection next to the Download button.

nexus.log

Think of this as the general application log for Nexus. Unless you are an administrative user, you might not have must interest in the information in this log. If you are trying to debug an error, or if you have uncovered a bug in Nexus, you'll use this log viewer to diagnose problems with Nexus.

nexus.xml

This XML file contains most of the configuration data for your instance of Nexus. It is stored in ${NEXUS_HOME}/runtime/apps/nexus/conf/nexus.xml.

log4j.properties

This file controls the logging facility of Nexus using the standard Log4J property file syntax. To edit the format or level of the Log4J logging, click on Log under the Administration menu. For more information about configuring the Nexus Log, see Section 6.11, “Nexus Logging Configuration”.

security.xml

This XML file contains the configuration for the XmlAuthenticatingRealm and the XmlAuthorizingRealm. It contains built-in user definitions and any externally mapped users that are mapped to Nexus roles.

Browsing Nexus Logs and Configuration

Figure 5.18. Browsing Nexus Logs and Configuration


If you are running Nexus Professional, you should see a few more configuration files in this directory which will correspond to the Procurement and Staging suites. The configuration files specific to Nexus Professional are:

procurement.xml

This file contains the configuration for the Nexus Procurement Suite as described in Chapter 8, Nexus Procurement Suite.

staging.xml

This file contains the configuration for the Staging Suite as described in Chapter 9, Build Promotion with the Nexus Staging Suite.

In Figure 5.18, “Browsing Nexus Logs and Configuration” there is a "tail" checkbox. If this box is checked, then Nexus will always show you the end of a log file. This can come in handy if you want to see a continuously updated log file. When this tail box is checked, a dropdown at the bottom of the panel allows you to set the update frequency. The contents of this dropdown are shown in Figure 5.19, “Selecting the Update Frequency when Tailing a Log File”. If an update interval is selected, Nexus will periodically refresh the selected log file.

Selecting the Update Frequency when Tailing a Log File

Figure 5.19. Selecting the Update Frequency when Tailing a Log File


Sonatype Promotion Subscribe via RSS