You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Narendra K Paruchuri <na...@asoft.net> on 2001/11/02 19:40:35 UTC
is ther any priority which makes no log
Hi all
is there any priority for a category which makes no log
thanks
Paruchuri
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
appender help
Posted by Harish K Kottarathil <hk...@ptc.com>.
Hi,
I am a newbie in this list. Please help me.
Here is my problem.
Howcan I suppress one Appender which is added in the rootCategory?
For example
log4j.rootCategory=DEBUG, Default, Console
where Default outputs to a File & Console to System.out
& later if I do
log4j.category.com.foo.bar=DEBUG,A1
where A1 is another FileAppender, the output comes in all the appenders.
If there any way I can set up the configuration properties to prevent the Additivity of
Default & Console in com.foo.bar , so that I will get the logs for the package com.foo.bar only in the file specified by the appender A1.
One way of doing is to set the threshold, but that affects all other packages also.But I need to suppres that only for the package com.foo.bar
Thanks,
Harish
Re: is ther any priority which makes no log
Posted by Yoav Shapira <sh...@mpi.com>.
Howdy,
All you have to do is subclass the Priority (1.1.x) or Level (1.2)
class. It's actually a very easy to class to subclass completely.
You just add your own priority with some integer value that indicates
where it places between the existing priorities. See the log4j
javadoc for Priority / Level.
I hope this helps ;)
Yoav
Narendra K Paruchuri wrote:
>
> can u tell me how can i define my own Priority which make no log (OFF) one
> (in log4j 1.1.3). can u send me sample code or where can i find the doc.
>
> Thanks
> paruchuri
>
> -----Original Message-----
> From: Yoav Shapira [mailto:shapira@mpi.com]
> Sent: Friday, November 02, 2001 1:55 PM
> To: Log4J Users List
> Subject: Re: is ther any priority which makes no log
>
> Hi,
> OFF (in log4j 1.2). If you need one, you can always define your own.
>
> Yoav
>
> Narendra K Paruchuri wrote:
> >
> > Hi all
> >
> > is there any priority for a category which makes no log
> >
> > thanks
> > Paruchuri
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: is ther any priority which makes no log
Posted by Narendra K Paruchuri <na...@asoft.net>.
can u tell me how can i define my own Priority which make no log (OFF) one
(in log4j 1.1.3). can u send me sample code or where can i find the doc.
Thanks
paruchuri
-----Original Message-----
From: Yoav Shapira [mailto:shapira@mpi.com]
Sent: Friday, November 02, 2001 1:55 PM
To: Log4J Users List
Subject: Re: is ther any priority which makes no log
Hi,
OFF (in log4j 1.2). If you need one, you can always define your own.
Yoav
Narendra K Paruchuri wrote:
>
> Hi all
>
> is there any priority for a category which makes no log
>
> thanks
> Paruchuri
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: is ther any priority which makes no log
Posted by Narendra K Paruchuri <na...@asoft.net>.
Thank Yoav
-----Original Message-----
From: Yoav Shapira [mailto:shapira@mpi.com]
Sent: Friday, November 02, 2001 1:55 PM
To: Log4J Users List
Subject: Re: is ther any priority which makes no log
Hi,
OFF (in log4j 1.2). If you need one, you can always define your own.
Yoav
Narendra K Paruchuri wrote:
>
> Hi all
>
> is there any priority for a category which makes no log
>
> thanks
> Paruchuri
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: is ther any priority which makes no log
Posted by Yoav Shapira <sh...@mpi.com>.
Hi,
OFF (in log4j 1.2). If you need one, you can always define your own.
Yoav
Narendra K Paruchuri wrote:
>
> Hi all
>
> is there any priority for a category which makes no log
>
> thanks
> Paruchuri
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>