RE: Help understanding Log4j basics

2010-11-25 Thread Bender Heri
> I've previously searched the manual and I understand the hierarchy of: > DEBUG < INFO < WARN < ERROR < FATAL > However, I'm interested in in learning if there is a way to print ONLY > one level rather than the target level and all levels above it. Unless > I've missed it, the manual does not expl

RE: [SCL-4] Intercepting LoggingEvent

2010-11-25 Thread Bender Heri
Write your own Renderer derivation which you can specify in xml configuration (assign to your specific class, see below). The Trick is that you pass a custom object to the log calls (the param need not to be a String, it is formally an object): MySpecificLogInfoHolder infos = new MySpecific

Re: [SCL-4] Intercepting LoggingEvent

2010-11-25 Thread Scott Deboy
Look at RewriteAppender. I think you May be able to do what you need with that and a custom RewritePolicy. Scott On Nov 25, 2010, at 6:33 AM, Bender Heri wrote: Write your own Renderer derivation which you can specify in xml configuration (assign to your specific class, see below). The Trick