logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ron <mpla...@vollbio.de>
Subject Re: logging to different files
Date Wed, 02 Mar 2005 22:18:08 GMT
ציטוט Curt Arnold:

>
> On Mar 2, 2005, at 3:32 PM, ron wrote:
>
>> Hi,
>> I am trying to set log4j under tomcat to log certain java packages to 
>> certain logs. My properties file is:
>> ----------------------------------------------------------------------- 
>> ----------
>>
> ...
>
>> ----------------------------------------------------------------------- 
>> ---------
>> I would want all the "net.tutim.*" classes to log to T.
>> but they log to R.
>> Can someone help me with that?
>>
>> Cheers,
>> Ron
>>
>>
>
> From my quick reading, it looks like INFO and higher logging requests 
> would go to both R and T (maybe twice) and DEBUG messages would only 
> go to T.

But this does not happen. I have 3 INFO messages on R, and none on T.
Furhter, I have other INFO messages in T, so it works fine, but messages 
from net.tutim go to R :(

> Unless you specify additivity=false for a logger, the message is also 
> processed by appenders attached lower in the hierarchy. If this isn't 
> what you are seeing, ignore this message.

I will try the additive property tommorow :)

>
> If my analysis does describe what you are seeing, read 
> http://logging.apache.org/log4j/docs/manual.html and search for 
> "Appender additivity and add a:
>
> log4j.additivity.net.tutim=false
>
> to your config file.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


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


Mime
View raw message