logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arora, Avinash" <Avinash.Ar...@Level3.com>
Subject printing time zone
Date Tue, 25 May 2004 19:05:19 GMT
Hi,

   In log4j.properties file, I am using PatternLayout as the layout
(log4j.appender.A1.layout = org.apache.log4j.PatternLayout). I was
trying to print time in this format-

[24-May-2004:10:07:00:EDT]

where EDT is time zone. I cannot figure out how to print time zone.
Presently I am using the following ConversionPattern-

log4j.appender.A1.layout.ConversionPattern =[%d{dd-MMM-yyyy HH:mm:ss}]

Can some one please tell me the corrext format for ConversionPattern to
print the time zone?

Thanks.

 

Avinash Arora

 


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