From: <Msc...@ao...> - 2003-01-07 17:40:33
|
In a message dated 1/7/03 8:52:15 AM Pacific Standard Time, ke...@go... writes: > > log4perl.logger.CCBU.Patch=ERROR, Log > > log4perl.logger.CCBU.Patch.Ticket=WARN,Log > Actually, these lines in your configuration file are defining this behaviour. If the Patch.Ticket logger decides to fire, it will not only forward it to the message to the attached appender, but also have it bubble up the hierarchy, where it will be forwarded to all appenders on the way up (to the appender attached to the "Patch" logger in this case). There's an explanation of this as well as a solution on <A HREF="http://www.perl.com/pub/a/2002/09/11/log4perl.html?page=3">http://www.perl.com/pub/a/2002/09/11/log4perl.html?page=3</A> in the "Beginner's Pitfalls" section. And, I might add, the trick Kevin showed you with log4perl.oneMessagePerAppender = 1 would probably cause an outrage with the log4j folks. But it is elegant, nevertheless :). Let me know if this answers your question. -- Mike |