Gotcha. Sorry if I was appering thick :-). From looking at the code, I
couldn't see the expected category.disable or similar method (or am I
wrong?) so I guess the only way to disable the logging to a category would
be to either wrap the use of the category with your own code (e.g. check is
activity before logging) or to remove all the attached appenders. Any
veteran Log4j people out here with a better idea?

sam
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 3:22 PM
Subject: Re: channels in Log4j


>
> What I mean by channels may be more clear if I use an analogy.  If a
> computer represents our main logging stream, then there might be a HD
> channel, a monitor channel, a keyboard channel, a NIC channel, etc.  So
I'm
> beginning to see that I mean by channels are log4j's Categories.  This was
> further clear to me in the FAQ which points out that in previous version
of
> Log4j, the log method took the category as a parameter.  This leaves one
> question.  Going back to the computer analogy, how do I turn off a
category
> if for example I want to completely disable logs from say the keyboard
> channel?  Can you turn off a Category or only set it as high as FATAL and
> have log methods that are lower than cat.fatal()?  IE as per my other
post,
> I would like to achieve this:
>
> log4j.category.foo.bar=OFF, utilFile
>
> Thanks,
> Craig
>



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

Reply via email to