commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hernán Pablo Leandro Seoane" <hseo...@gmail.com>
Subject Re: Log4j - Logging a single method
Date Thu, 15 Jan 2009 19:12:49 GMT
But there's nothing to configure it in a way like this?
log4j.logger.my.package.MyClass.theMethod=ERROR, MyErrorFile

Thanks!
Hernan

On Thu, Jan 15, 2009 at 5:05 PM, Hanson Char <hanson.char@gmail.com> wrote:

> I guess it's possible, but would be expensive since that would entail
> examining the call stack.
>
> Hanson
>
> On Thu, Jan 15, 2009 at 11:00 AM, Hernán Pablo Leandro Seoane <
> hseoane@gmail.com> wrote:
>
> > Hi everyone,
> > I'm trying to configure Log4j so that the output of the logger for a
> > specific method of a certain class goes to a separate file.
> > I know that it can be configured to log a specific package or class, but
> is
> > it possible to push it down to a method level?
> >
> > Thanks!
> > Hernan
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message