Sending logs from only certain loggers to an appender is one of the
most common ways to use log4j.

On 8/1/07, Walter Holladay <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I work on a large project that has lots of logging information being written
> to the log file. I want to narrow what logging data I see to only those
> messages logged by my team mates. The way I would like to do this is by
> having a filter that will only pass through messages logged from a given
> logger, or loggers. All of the loggers at my company are created using the
> class  that is doing the logging. For example private Logger logger =
> Logger.getLogger(getClass()). Therefore, I would like to be able to specify
> the class or the package that the logger belongs to, and only have those
> messages go to my log file.
>
> I would think this is a fairly common thing to do. However, I cannot find a
> filter that does this. Is there some way to accomplish this, short of
> writing my own filter?
>
> Thanks,
> Walter
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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

Reply via email to