|
From: Philippe H. <phi...@RT...> - 2004-04-13 07:23:56
|
Hello,
As explained in the PatternLayout documentation, you can format the dat=
e
using the strftime function syntax, for instance :
log4j.appender.A0.layout=3Dorg.apache.log4j.PatternLayout
log4j.appender.A0.layout.ConversionPattern=3D%d{%d/%m/%Y %H:%M:%S} - %p=
- %m%n
Regards,
PH
Monica Lau <mll...@ya...>@lists.sourceforge.net on 09/04/2004
03:18:35
Envoy=E9 par : log...@li...
Pour : log...@li...
cc : (ccc : Philippe HAUTION/RTE/GRT/FR)
Objet : [Log4cpp-devel] log4cpp timestamp
Hi all,
I'm very new to the log4cpp library, and I was just wondering if the
library provides a function to translate the timestamp into the readabl=
e
format that is provided by the "date" command?=A0 For example, log4cpp =
logs
the following:
995871335 ERROR main_cat: This is an error.
Instead of this, can log4cpp do this:
Thu Apr 8 18:17:38 PDT 2004 ERROR main_cat: This is an error.
Thanks for your time and help.
Regards,
Monica
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today
=
|