From the PatternLayout Javadoc:
The date format specifier admits the same syntax as the time pattern string of the SimpleDateFormat.

So, you would use a "z" to get the timezone.


On May 18, 2006, at 6:47 AM, V Jayakumar wrote:

* Replies will be sent through Spamex to [email protected]
* For additional info click -> http://www.spamex.com/i/?v=3863091

In Log4j, which conversion character would help me to log the time zone along with the date.

For example, %d{MMM dd YYYY HH:mm:ss.SSS} would help me to print the time as

MAY 18 2006 12:12:34.234

I would like the see the time zone along with the date as MAY 18 2006 12:12:34.234 BST

Could you someone let me know, how should I configure my pattern layout to achieve this ?

Thanks in advance for your help.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to