logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Initial commit of sandbox multifile project
Date Wed, 11 Oct 2006 03:25:27 GMT
I've just committed the start of a multifile appender project as  
recently discussed on the list.  The project is not functional yet,  
for example, it doesn't contain any appenders at the moment.  Hope to  
fill those in over the next few days.  What is in there at the moment  
is the FileNamePolicy interface and two implementing classes,  
PatternFileNamePolicy and SizeBasedFileNamePolicy with corresponding  
unit tests.  PatternFileNamePolicy uses a captive PatternLayout to  
generate a file name from a LoggingEvent.  Setting a  
conversionPattern of "%t.log" would result in using the thread name  
plus ".log" as the file name.  SizeBaseFileNamePolicy checks the  
parent directory for any files matching the specified body and  
extracts the largest index and continues to use that until it exceeds  
the specified maximum file size.  The sandbox project is built using  
Maven 2.

To check out the project:

svn co http://svn.apache.org/repos/asf/logging/sandbox/log4j/ 
multifile multifile

To build the project and run the unit tests:

cd multifile
mvn install

To build the documentation:

cd multifile
mvn site

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

View raw message