See Log4J documentation for details.
You can configure the behavior in:
- $JBOSS/server/default/conf/log4j.xml for Nuxeo EP 5.1 (JBoss 4.0.x)
- $JBOSS/server/default/conf/jboss-log4j.xml for Nuxeo EP 5.2 and 5.3 (JBoss 4.2.x)
Here is a log file rotation configuration sample:
This configuration limits the log file size to 10MB. It will keep only three files as archive, switching to another file when one reaches the size limit. You can change MaxBackupIndex and MaxFileSize to fit your needs.
Labels:
None