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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
