logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From log4j_ro...@xemaps.com
Subject Re: Which conversion character would log timezone ?
Date Thu, 18 May 2006 11:44:03 GMT
 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 log4j-user@logging.apache.org
> * 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


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