logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yair Ogen <yairo...@gmail.com>
Subject Re: Access logfile logger
Date Mon, 04 May 2009 13:28:34 GMT
I think the approach should be via the appender. you can try and extend it -
AFAIK only the appender can give you the file name.

On Mon, May 4, 2009 at 3:56 PM, <JasDA@web.de> wrote:

> Hi,
>
> I'm using log4j with a DailyRollingFileAppender. Now I want to add some
> reporting functions to the same application that uses this appender. So I
> need to get access to the logfile that is written by the file appender. Only
> the current logfile needs to be read so is is possible via the logger
> instance?
>
> Logger logger = Logger.getLogger(this.class);
>
> Regards,
> Jason
>
>
> ______________________________________________________
> GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://movieflat.web.de
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

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