logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Smith <paul.sm...@lawlex.com.au>
Subject Re: discreet log types
Date Thu, 14 Aug 2003 21:52:20 GMT
On Fri, 2003-08-15 at 07:49, Larry Young wrote:
> Ceki,
> 
>          That's an interesting way of looking at logger types!  But how 
> would that allow me to enable/disable log messages for a particular 
> class?  One of the features I need is the ability to specify that a 
> particular class should display a particular type of log message (or 
> possibly more than one).  This would appear to only let me set the message 
> type system wide.  Did I miss something?

No, you haven't missed anything, it would set the types system wide, and
allow you to specify the level system wide, but if that was not granular
enough, can't you specific a particular Filter for your appender?  (i.e
all classes logging to the DB logger, but you filter for a particular
class).

I'm sure you could write yourself a Filter sub-class very quickly and
attach it to an Appender via the configuration.   You could configure
this Filter impl with some configuration as to what classes you want to
see output.

Hope that makes sense.

cheers,

Paul Smith



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


Mime
View raw message