AASV9 按日期分割日志文件的配置方法说明
aasv9的日志配置文件位于$DOMAIN_HOME/config/logging.xml。
默认文件滚动配置为1m大小,最多10个文件。
如果要更改为按照自然日期分割,则需要将java.util.logging.FileHandle 替换为 com.apusic.logging.DateFileHandle,如下片段所示:
<logging>
<handler class="com.apusic.logging.ConsoleHandler">
<property name="level" value="ALL"/>
</handler>
<handler class="com.apusic.tools.admin.WebConsoleHandler">
<property name="level" value="ALL"/>
<formatter class="com.apusic.logging.SimpleFormatter"/>
</handler>
<handler class="com.apusic.logging.DateFileHandler">
<property name="level" value="ALL"/>
<property name="limit" value="1000000"/>
<property name="count" value="10"/>
<property name="pattern" value="%h/logs/apusic.log"/>
<property name="append" value="true"/>
<formatter class="com.apusic.logging.SimpleFormatter"/>
</handler>
<!-- Set the logging level for the root of the namespace. -->
<!-- This becomes the default logging level for all Loggers. -->
<logger name="" level="INFO"/>
<!-- The default logging level for server services. -->
<logger name="apusic" level="INFO"/>
</logging>