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 Curt Arnold <ca...@houston.rr.com> on 2005/03/10 15:44:19 UTC
Re: Logging timestamps in UTC using a FileAppender
It has been added to log4j 1.3, use a conversion pattern like:
%d{HH:mm:ss}{GMT}
On Mar 10, 2005, at 7:14 AM, Byrom, R (Rob) wrote:
> Hi,
>
> Is there any way to configure log4j to output the date/time in UTC? I'm
> using a file appender but can't see any obvious switch/property to
> modify the locale (at least not that I can find in the usual
> ConversionPattern).
> Does anyone have any ideas?
>
> Thanks,
>
> Rob
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Logging timestamps in UTC using a FileAppender
Posted by Rob Byrom <r....@rl.ac.uk>.
thanks for your help!
Rob
On Thu, 2005-03-10 at 14:44, Curt Arnold wrote:
> It has been added to log4j 1.3, use a conversion pattern like:
>
> %d{HH:mm:ss}{GMT}
>
>
>
> On Mar 10, 2005, at 7:14 AM, Byrom, R (Rob) wrote:
>
> > Hi,
> >
> > Is there any way to configure log4j to output the date/time in UTC? I'm
> > using a file appender but can't see any obvious switch/property to
> > modify the locale (at least not that I can find in the usual
> > ConversionPattern).
> > Does anyone have any ideas?
> >
> > Thanks,
> >
> > Rob
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org