logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Kemp" <mattk...@gmail.com>
Subject Re: How to stop further processing?
Date Fri, 03 Aug 2007 18:43:25 GMT
Setting additivity to false should fix your problem. I'm not sure about the
properties log4j config, but in log4j.xml it's just an attribute on the
logger.

On 8/3/07, Daniel Henninger <jadestorm@nc.rr.com> wrote:
>
> Hi folk!
>
> I'm trying to switch my project to log4j and am running into an issue
> where... ok here's what I've done (conceptually)
>
> log4j.appender.myappender is set to ....MyAppender
> log4j.appender.myappender2 is set to ....MyAppender2
> log4j.rootLogger is set to myappender
> log4j.logger.some.class.tree is set to myappender2
>
> When something in some.class.tree logs, the log entry goes to both
> MyAppender2 and MyAppender.  What I'm really after is for MyAppender2
> to 'override' the root logger for that particular tree.  Is there
> something obvious I'm missing?  Is this not possible?  Any
> suggestions?  Thanks!!
>
> Daniel
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message