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 Brenner Rene <Re...@ruf.ch> on 2009/07/10 10:20:29 UTC

log4j reference time

Hello all

I understand, that log4j uses an absolute time and reference time based on the system time of the underlying operating system.
Is there a way to set a reference time to the log4j appender which is different to the actual system time? On my system I use
a reference time which is only valid within the JVM environment.

Thanks,
René


Re: log4j reference time

Posted by Yair Ogen <ya...@gmail.com>.
AFAIK log4j always uses the system time, BUT you can manipulate the time
being printed in the log file itself by using the log4j extras package and
the EnhancedPatternLayout.

On Fri, Jul 10, 2009 at 11:20 AM, Brenner Rene <Re...@ruf.ch> wrote:

> Hello all
>
> I understand, that log4j uses an absolute time and reference time based on
> the system time of the underlying operating system.
> Is there a way to set a reference time to the log4j appender which is
> different to the actual system time? On my system I use
> a reference time which is only valid within the JVM environment.
>
> Thanks,
> René
>
>