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 "Arora, Avinash" <Av...@Level3.com> on 2004/05/25 21:05:19 UTC

printing time zone

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