On Sep 14, 2006, at 4:11 PM, James Stauffer wrote:
4. Write your own appender that potentially changes the logfile name per logging event. I do a smiliar thing with an appender. http://stauffer.james.googlepages.com/DateFormatFileAppender.java
5. Discuss the requirements for such an appender on the mailing list and see if a consensus could be formed. If so, a sandbox project could be started to develop the appender and when functional it might get added into log4j itself. You also might check if log4net might already have something similar and if so, we might port it back from there.
I thought about it a little. It was thinking that you might specify a java.text.MessageFormat pattern for file name using Thread.getName () (or Thread.toString() if name was blank), the maximum number of open files, plus the WriterAppender properties. The appender would keep a hashmap of Writers keyed by the generated file name and would maintain it so it closed the stalest Writer if the open file count would have been exceeded.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
