I suspect with the new JAMonAppender you could do a pattern layout that only has the thread in it, and then you would be able to create a buffer that would allow you to display in a buffer from a web page the most recent N log messages from each thread. You could also use this to write each log message to a separate file.
I suspect you could come up with a custom appender that did something similar. On 6/1/07, Patrick <[EMAIL PROTECTED]> wrote:
Are there other logging subsystems that are capable of doing this other than log4j? Is the only solution to: tail -f main.log | grep [threadid] -Patrick On 5/31/07, Patrick & Lisa <[EMAIL PROTECTED]> wrote: > > Hi all - > > I've been searching and have yet to find a definitive answer on how to > create a separate log file for each thread. I've read else where that the > simplest way is to use post processing, but for my application that is > difficult to do when debugging a live system. The best solution would > really be a separate log file for each thread. > > I saw the http://stauffer.james.googlepages.com/*DateFormatFileAppender*.java > but that doesn't meet what I'm looking for. Any help would be much > appreciated! > > Thanks, > Patrick > >
