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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to