On May 14, 2007, at 12:40 AM, Jitendra Kharche wrote:


Hi Curt,

So what do you suggest me to use in place of log4cxx 0.9.7 so that my
application has no impact.


If you have been using log4cxx 0.9.7 for a prolonged period of time and have not been running into any other the other issues, then your best course of action may be to research the bug in log4cxx 0.9.7 yourself and fix it in a local copy. However, as development has moved far away from point, there is no benefit to the community for someone to volunteer to debug it for you.

If you are just getting started, I would suggest building log4cxx from the Subversion repository or downloading a nightly snapshot from http://littletux.homelinux.org/log4cxx/. Both of these are really close to what would be in log4cxx 0.10.0.




Thanks Arnold.

I am using both log4cxx (v0.9.7) and log4j (v1.2.8).
RollingFileAppender
works fine with log4j but not with log4cxx (with the similar
configuration).

I will try with changes you suggested. But I am not able to find any
package named 'org.apache.log4j.rolling' both in the log4j jar as well

as the c++ distribution. So I am wondering how will it work.

Please help.




org.apache.log4j.rolling.RollingFileAppender was introduced in the log4j 1.3 development. If you are using log4j 1.2.8 and rolling is working for you, then your configuration file is almost certainly using org.apache.log4j.RollingFileAppender. The current log4cxx code base should support both org.apache.log4j.RollingFileAppender and org.apache.log4j.rolling.RollingFileAppender with exactly the same format as log4j. (log4cxx-0.9.7 required you to change the date format specifiers).


Reply via email to