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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to