Log file Size
I cannot seem to be able to vary the log file size. I have my own "standard" log4j.xml file as below - I set DEBUG mode on, excluding library details, and also set the log file size to 5000K (5MB):
The DEBUG settings work fine, but the log file size setting doesn't - it keeps growing indefinitely. I have compared it to the standard log4j.xml file that ships with Serviio, and cannot see what is wrong. Can anyone see what is wrong, or is it a bug?
- Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ===================================================================== -->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="DEBUG"/>
<param name="Append" value="true" />
<param name="File" value="${serviio.home}/log/serviio.log" />
<param name="MaxFileSize" value="5000KB" />
<param name="MaxBackupIndex" value="5" />
<param name="Encoding" value="UTF-8" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
</layout>
</appender>
<category name="org.serviio">
<priority value="DEBUG"/>
</category>
<category name="org.serviio.library.local">
<priority value="INFO"/>
</category>
<category name="org.serviio.library.online">
<priority value="INFO"/>
</category>
<category name="org.serviio.library.dao">
<priority value="INFO"/>
</category>
<category name="com.sun.syndication">
<priority value="ERROR"/>
</category>
<category name="org.jaudiotagger">
<priority value="ERROR"/>
</category>
<category name="org.restlet">
<priority value="OFF"/>
</category>
<category name="LogService"> <!-- Restlet access log -->
<priority value="OFF"/>
</category>
<category name="org.apache.jcs">
<priority value="WARN"/>
</category>
<root>
<priority value="INFO"/>
<appender-ref ref="FILE"/>
</root>
</log4j:configuration>