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

   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-


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?



Avinash Arora


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