You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Maenhout, Koenraad" <Ko...@barco.com> on 2001/05/17 10:54:37 UTC

logging 40 times to file instead of once

Dear,

I'm using log4j to store some information concerning the actions of some
classes. For each class I use a "DailyRollingFileAppender" and a
"PatternLayout" as the layout.

When I log the info there is one class that logs the info 40 times in the
log file and only once at the screen. The other classes have the same
settings for logging and they log only once in the file.

What went wrong.

Regards.

Koenraad Maenhout
Electronic Development Engineer
Barco l Daylight Display Systems
TEL.: 0032 (0)56 36 88 52
FAX: 0032 (0)56 36 88 24

mailto:koenraad.maenhout@barco.com 
www.barco.com/dds


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Re: logging 40 times to file instead of once

Posted by Anuj Agrawal <ag...@lucent.com>.
You will need to set the additivity flag to false.

Look up the docs for how to do this.
Anuj.

"Maenhout, Koenraad" wrote:

> I'm using log4j to store some information concerning the actions of some
> classes. For each class I use a "DailyRollingFileAppender" and a
> "PatternLayout" as the layout.
>
> When I log the info there is one class that logs the info 40 times in the
> log file and only once at the screen. The other classes have the same
> settings for logging and they log only once in the file.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org