Logger, that would write log for a start only when 'commit' is called at the end.

2007-11-12 Thread Sander Mägi
Figured it out - I need to forward to a logger and not to an appender so configuration would be something like this: log4j.appender.P1=com.aqris.plogger.ProblemAppender log4j.appender.P1.targetLogger=PROBLEMS log4j.appender.TARGET=org.apache.log4j.ConsoleAppender log4j.appender.TARGET.layout=or

Re: How to get reference to an appender by name?

2007-11-12 Thread Bender Heri
> 1) Does this kind of solution perhaps exits already? I remember that this was discussed already. But dont remember the solution. Search the archive. > 2) If not - what would be the way to get a reference to appender > 'TARGET' from the context of ProblemAppender. You can get a list o

How to get reference to an appender by name?

2007-11-12 Thread Sander Mägi
Hi, I am trying to write a new appender for log4j mainly for production web applications. It would create a separate log, that logs everything in case the request ended with error and nothing if it completed successfully. I thought to call it ProblemAppender. The idea I have is that at the b