logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Log4j config entry for GMT
Date Thu, 20 Apr 2006 19:25:03 GMT
If you are using log4j 1.3 and the  
org.apache.log4j.rolling.TimeBasedRollingPolicy, you can place {GMT}  
after your date format.  Something like:

policy.setFileNamePattern("service_log.%d{yyyy-MM-dd-HH}{GMT}");

I do not believe there is a mechanism to do this in log4j 1.2, but I  
could be wrong.


On Apr 20, 2006, at 1:03 PM, Chowdhury, Mohammed wrote:

> Hi,
>
> My log file name is like service_log.2006-04-20-10 where last digit  
> is hour in PDT. What configuration change need to be done to make  
> it GMT hour?
>
> Mohammed
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message