monitor.xml 932 Bytes
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration PUBLIC
                "-//APACHE//DTD LOG4J 1.2//EN" "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
<log4j:configuration>
    <!--统一监控 -->
    <appender name="MONITOR_LOG" class="org.apache.log4j.DailyRollingFileAppender">
        <param name="Encoding" value="UTF-8"/>
        <param name="Append" value="true" />
        <param name="File" value="${dili_titan.log.path}/monitor/monitor.log"/>
        <param name="DatePattern" value="'.'yyyy-MM-dd" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="[%p] [%d] [%r] [%c] - %m %n"/>
        </layout>
    </appender>

    <category name="MONITOR_LOG" additivity="false">
        <priority value="${dili_titan.log.level}"/>
        <appender-ref ref="MONITOR_LOG"/>
    </category>
</log4j:configuration>