logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: CompositeRollingAppender compile problem
Date Tue, 26 Aug 2008 16:49:02 GMT

On Aug 26, 2008, at 8:32 AM, Kent, Doug wrote:

> I downloaded the latest jar (apache-log4j-1.2.15.zip) and added the
> CompositeRollingAppender.java to the
> \apache-log4j-1.2.15\src\main\java\org\apache\log4j directory and ran
> ant.
>
> I got:   (see below)  why is CompositeRollingAppender invoking a
> FileAppender setFile method with the wrong signature? thanks...
>
>
> D:\applications\apache-log4j-1.2.15>ant jar
> Buildfile: build.xml
>
> init:
>
> build.core:
>    [javac] Compiling 1 source file to
> D:\applications\apache-log4j-1.2.15\dist\classes
>    [javac]
> D:\applications\apache-log4j-1.2.15\src\main\java\org\apache\log4j 
> \Compo
> siteRollingAppender.java:3
> 71: cannot find symbol
>    [javac] symbol  : method setFile(java.lang.String,boolean)
>    [javac] location: class org.apache.log4j.FileAppender
>    [javac]             super.setFile(fileName, append);
>    [javac]                  ^
>    [javac] 1 error
>
> BUILD FAILED
> D:\applications\apache-log4j-1.2.15\build.xml:250: Compile failed; see
> the compiler error output for details.
>
> Total time: 1 second
> D:\applications\apache-log4j-1.2.15>
>
>
> Douglas Kent
> EDS - Enterprise Integration Services
> <http://www.consultingservices.us.eds.com/nlapps/docs/default.asp?fid=41
> 7>
> A4S-A21
> 13600 EDS Drive
> Herndon, VA 20171
>
> Phone: (703) 742-2644
>
>
>


I don't have any experience with CompositeRollingAppender.  I did a  
quick search of the archives and there were very old messages (circa  
2002) asking if it worked and indicating that it was unlikely to be  
integrated into log4j.  The contribs directory is essentially a very  
old sandbox area that has not been maintained or monitored for many  
many years.  However, since it was distributed with earlier log4j's  
the most conserved approach is to continue to distribute it.

The org.apache.log4j.rolling.RollingFileAppender in the extras  
companion is the backport of the log4j 1.3 development effort which  
likely superseded earlier speciality rolling appenders.  If you are  
looking for a specific behavior, I would suggest first attempting to  
provide either a custom triggering or rolling (naming) policy for  
org.apache.log4j.rolling.RollingFileAppender. 
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message