logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albert Sese <albert.s...@gmail.com>
Subject Upgraded from log4j 1.2.11 to 1.2.17 caused problems
Date Wed, 06 Feb 2013 07:43:18 GMT
Hi everyone,

I need your help. We recently upgraded the jar file from 1.2.11 to 1.2.17,
and then our log4j settings don't work anymore; everything gets logged to
server.log. Here is our log4j.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="true" xmlns:log4j="
http://jakarta.apache.org/log4j/">

    <appender name ="ASYNC" class = "org.apache.log4j.AsyncAppender">
        <appender-ref ref ="TRANS_DEBUG"/>
        <appender-ref ref ="FUSION_DEBUG"/>
        <appender-ref ref ="FUSION_EMAIL"/>
        <appender-ref ref ="JMS_APPENDER"/>
    </appender>

    <appender name="TRANS_DEBUG" class="org.apache.log4j.FileAppender">
        <param name="File"
value="${com.sun.aas.instanceRoot}/logs/fusion_server_transaction.log" />
        <param name="Append" value="true" />
        <param name="Threshold" value="DEBUG" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
value="[#|%d{yyyy-MM-dd'T'HH:mm:ss.SSSz}|%p|%t|%c|%M|%L|%m|#]%n" />
        </layout>
    </appender>

    <appender name="FUSION_DEBUG"
class="org.apache.log4j.RollingFileAppender">
        <param name="File"
value="${com.sun.aas.instanceRoot}/logs/fusion_server.log" />
        <param name="MaxFileSize" value="5000KB" />
        <param name="maxBackupIndex" value="100" />
        <param name="Append" value="true" />
        <param name="Threshold" value="INFO" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
value="[#|%d{yyyy-MM-dd'T'HH:mm:ss.SSSz}|%p|%t|%c|%M|%L|%m|#]%n" />
        </layout>
    </appender>

    <appender name="FUSION_EMAIL"
class="org.apache.log4j.RollingFileAppender">
        <param name="File"
value="${com.sun.aas.instanceRoot}/logs/fusion_email.log" />
        <param name="MaxFileSize" value="5000KB" />
        <param name="maxBackupIndex" value="20" />
        <param name="Append" value="true" />
        <param name="Threshold" value="INFO" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
value="[#|%d{yyyy-MM-dd'T'HH:mm:ss.SSSz}|%p|%t|%c|_ThreadID=10;|%m|#]%n%n"
/>
        </layout>
    </appender>

    <appender name="JMS_APPENDER"
class="org.apache.log4j.RollingFileAppender">
        <param name="File"
value="${com.sun.aas.instanceRoot}/logs/jms_fusion.log" />
        <param name="MaxFileSize" value="5000KB" />
        <param name="maxBackupIndex" value="20" />
        <param name="Append" value="true" />
        <param name="Threshold" value="INFO" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
value="[#|%d{yyyy-MM-dd'T'HH:mm:ss.SSSz}|%p|%t|%c|_ThreadID=10;|%m|#]%n%n"
/>
        </layout>
    </appender>



    <!-- ====== For Fusion Application ======= -->

    <logger
name="org.springframework.orm.hibernate3.HibernateTransactionManager"
additivity="false">
        <appender-ref ref="TRANS_DEBUG" />
    </logger>

    <logger name="aero.champ" additivity="false">
        <appender-ref ref="FUSION_DEBUG" />
    </logger>

    <logger name="aero.champ.fusion.service.emailservice"
additivity="false">
        <appender-ref ref="FUSION_EMAIL" />
    </logger>

    <logger name="aero.champ.fusion.integration" additivity="false">
        <appender-ref ref="JMS_APPENDER" />
    </logger>

    <!-- ====== ROOT inheritance ======= -->
    <root>
        <appender-ref ref="FUSION_DEBUG" />
    </root>

</log4j:configuration>


Would appreciate quick responses. Thanks!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message