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

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.

log4j uses java.text.SimpleDateFormat for date formatting which is documented at http://java.sun.com/j2se/1.5.0/docs/api/java/text/ SimpleDateFormat.html. If you want the 3 letter abbreviation, then adding zzz should do it. log4j 1.3 supports specifying the time zone by adding another pair of braces.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to