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

 

Reply via email to