Yes, and I want to do it in the log4j.properties file, not in the code
through calls on a Category object.

-----Original Message-----
From: Christopher Taylor [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 5:08 PM
To: LOG4J Users Mailing List
Subject: Re: preventing logging to a file?


If I understand your question properly, what you want to do is turn off
additivity for the subpackage category.

-Chris

Andy Kriger wrote:

> Is there a way to have a parent log to a file and a child turn off logging
> to that file so it can log to a different file completely?
>
> For example...
> log4j.category.com.triene=DEBUG,file1
> log4j.category.com.triene.subpackage=DEBUG,file2
>
> By default, subpackage logs to file1 & file2. I want subpackage to only
log
> to file2 and not log at all to file1.
>
> thx
>
> Andy Kriger
> Triene Inc.
> 116 W23rd Street
> Suite 500
> New York, NY 10011
> 646.375.2364 (W)
> 646.298.5493 (M)
>
>   ------------------------------------------------------------------------
>                   Name: winmail.dat
>    winmail.dat    Type: application/ms-tnef
>               Encoding: base64
>
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to