"Scott Heaberlin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Certainly - you could define a logger with the name of the class itself,
> then effectively squelch it:
>
> via DOMConfigurator:
>
> <logger name="com.mycompany.myproduct.MyClass" additivity="false">
>    <level value="FATAL"/>  <!-- I believe you can also specify "NONE"
> -->
> </logger>

Thanks a lot!

> <shamelessplug>
> check out The Complete Log4j Manual by Ceki Gulcu
> </shamelessplug>
I already bought it and it's on the way.

Song

>
>
> -Scott Heaberlin
>
>
>
> > -----Original Message-----
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Song
> > Sent: Monday, December 08, 2003 7:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Can we control the logging level to class level
> > instead of package level?
> >
> >
> >  Hi,
> > Can I do something like this :
> >
> > For specific class in certain package, don't log the event
> > using specific appender while allowing other classes in the
> > same package to do that?
> >
> > Thanks.
> >
> > Song
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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