Several important aspects of Nexus logging configuration are not automatically modified when you upgrade Nexus. These are:
- default logger levels
- logging appender pattern
- modifications to log rotation in logback-nexus.xml
When you are upgrading from a previous Nexus 2.x version, we advise to reset your entire logging configuration manually, in order to pick up changes in our recommended logging settings.
Resetting logging configuration requires a manual process:
- Make note of any custom log rotation changes you may have made in the past inside of
${NEXUS_WORK}/conf/logback-nexus.xml
- Stop Nexus
-
Navigate on the file system to the ${NEXUS_WORK} configuration directory - typically this is
sonatype-work/nexus/conf/
.Delete these files:
logback.properties
logback-nexus.xml
logback-overrides.xml
( Nexus 2.7 and greater )
All of these files were originally created by Nexus and will be recreated as needed on Nexus restart.
- Start Nexus. On startup, Nexus will recreate any logging configuration files automatically using the default recommended configuration.
- (Optional) Review log rotation settings inside of
${NEXUS_WORK}/conf/logback-nexus.xml
and edit these settings if they do not meet your needs.
For more information about Nexus logging, refer to the Nexus logging Guide.
0 Comments