You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Balamurugan <e....@gmail.com> on 2006/06/20 11:47:03 UTC

Rollingfile Appenders with 0.9.8 in AIX 5.3

Hi,
      Using Rolling file appender in 0.9.8 gives class not found error on AIX.
It works fine on Solaris and windows.
Have anyone faced such a problem ? Any help on this is appreciated.
I am using the source from 9/27 tarball.

Error:

log4cxx: Class name: [org.apache.log4j.rolling.RollingFileAppender]
log4cxx: Parsing rolling policy of 
class: "org.apache.log4j.rolling.FixedWindowRollingPolicy"
log4cxx: Could not create the RollingPolicy. Reported error follows.
log4cxx: Class not found: org.apache.log4j.rolling.FixedWindowRollingPolicy
log4cxx: Parsing triggering policy of 
class: "org.apache.log4j.rolling.SizeBasedTriggeringPolicy"
log4cxx: Could not create the TriggeringPolicy. Reported error follows.
log4cxx: Class not found: org.apache.log4j.rolling.SizeBasedTriggeringPolicy

Config file:
<log4j:configuration xmlns:log4j='http://logging.apache.org/' debug="true">
  <appender name="RFA" class="org.apache.log4j.rolling.RollingFileAppender">
    <rollingPolicy class="org.apache.log4j.rolling.FixedWindowRollingPolicy">
      <param name="activeFileName" value="mylog.log"/>
      <param name="fileNamePattern" value="mylog.log.%i"/>
      <param name="minIndex" value="0"/>
      <param name="maxIndex" value="5"/>
    </rollingPolicy>
    <triggeringPolicy 
class="org.apache.log4j.rolling.SizeBasedTriggeringPolicy">
      <param name="MaxFileSize" value="1KB"/>
    </triggeringPolicy>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{MM/dd HH:mm:ss.SSS} %c - %m%
n"/>
    </layout>
    <param name="file" value="mylog.log"/>
    <param name="append" value="false"/>
  </appender>
  <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{MM/dd HH:mm:ss.SSS} %c{1} - %m%
n"/>
    </layout>
  </appender>
  <root>
      <level value="info"/>
      <appender-ref ref="RFA"/>
      <appender-ref ref="CONSOLE"/>
  </root>
</log4j:configuration>