You have attached the console appender to the logger you wish to ignore, in this line:
log4j.category.fr.MyClass=INFO, console This means that any INFO message for that logger will go to the console appender, which really means that this entry is redundant. What I think you want is to modify this line: log4j.category.fr.MyClass=INFO, console to either: log4j.category.fr.MyClass=OFF or: log4j.category.fr.MyClass=INFO The former is more efficient since logs will be ignored at an earlier stage, while the latter means that INFO and above are 'accepted', but since there is no logger attached (and additivity is off) they do not end up anywhere. Hope that helps. cheers, Paul Smith -----Original Message----- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 12/2/03 7:31 PM Subject: additivity trouble Hello everybody, I'm using a root category for all the logs and i want to exclude a class from these logs, here is my log4j.properties file log4j.rootCategory=INFO, console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%-5p [%t] %40c %x - %m%n log4j.category.fr.MyClass=INFO, console log4j.additivity.fr.MyClass=false This doesn't work. Can someone help me? Thanks in advance... Ahmed ALAMI SDV (Support Outils Dévellopement NTIC) Tel : 05 57 75 60 52 JUST GEEK CODE -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCM d s+: a C+ UL++ P L++ E++ W++ N++ o K- w O M- V- PS++ PE+ Y+ PGP+ t 5 X R tv+ b+++ DI+ D G++ e+++ h+ r++ x+ ------END GEEK CODE BLOCK------ -----BEGIN JAVA GEEK CODE BLOCK----- Version: 0.01b Epvbdemon+++(++++)@$* ------END JAVA GEEK CODE BLOCK------ <<ATT108217.txt>> <<ATT108218.txt>> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]