Hi Hernan,

Do you have the correct settings of the GMT.
That usually happens when the TZ variable (under solaris) has the wrong value.
Check it. Modify it. And try again.

Regards.

Luis Diaz

================= Original message =============== 
From: "Ceki Gíí" <[EMAIL PROTECTED]> 
To: "Log4J Users List" <[email protected]> 
Sent: Tue, 01 Feb 2005 15:40:26 +0100 
Subject: Re: Problem with delayed date  

C> 
C> Is server2 using log4j version 1.3alpha?
C> 
C> At 03:31 PM 2/1/2005, [EMAIL PROTECTED] wrote:
C> 
C> >Hi, I am new with log4j, and I got a problem with the date printed by log4j.
C> >
C> >I'm using the next configuration:
C> >
C> >#############  Bitacora por archivos
C> >###############################################
C> >
C> ># Prioridad a partir de la que comenzara a sensar
C> >log4j.appender.File.Threshold=DEBUG
C> >
C> ># Especificacion para que la salida sea por archivos basados en fechas
C> >log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
C> >
C> ># Nombre y ruta relativa de archivos
C> >log4j.appender.File.File=/u2/GSM/PTT/logs/ptt.log
C> >
C> ># Especificacion para que el archivo se rote cada fecha indicada
C> ># '.'yyyy-MM: Rota el archivo el primero de cada mes
C> ># '.'yyyy-ww: Rota el archivo al inicio de cada semana
C> ># '.'yyyy-MM-dd: Rota el archivo a la media noche todos los dias
C> ># '.'yyyy-MM-dd-a: Rota el archivo a la media noche y al medio dia, todos
C> >los dias
C> ># '.'yyyy-MM-dd-HH: Rota el archivo al inicio de cada hora
C> ># '.'yyyy-MM-dd-HH-mm: Rota el archivo al inicio de cada minuto
C> >log4j.appender.File.DatePattern='.'yyyy-MM-dd
C> >
C> ># Patron formato de salida para archivo
C> >log4j.appender.File.layout=org.apache.log4j.PatternLayout
C> >log4j.appender.File.layout.ConversionPattern=%d %x|%m%n
C> >############################################################################
C> >#########
C> >
C> >And it works ok,in some servers,printing the date ok, but in others servers
C> >the date is delayed,
C> >By example, the log in two diferents server at the same time
C> >
C> ># Server 1[printing date ok]
C> >----------------------------
C> >2005-02-01 09:27:01,463 |SQLConnector::getConnection()->Connection
C> >2005-02-01 09:27:07,482 |SQLConnector::getConnection()->Connection
C> >2005-02-01 09:27:12,502 |SQLConnector::getConnection()->Connection
C> >2005-02-01 09:27:17,542 |SQLConnector::getConnection()->Connection
C> >
C> ># Server 2[printing date wrong]
C> >-------------------------------
C> >2005-02-01 01:02:01,463 |SQLConnector::getConnection()->Connection
C> >2005-02-01 01:02:07,482 |SQLConnector::getConnection()->Connection
C> >2005-02-01 01:02:12,502 |SQLConnector::getConnection()->Connection
C> >2005-02-01 01:02:17,542 |SQLConnector::getConnection()->Connection
C> >
C> >I almost forgot something, the aplication I am using log4j is the same in
C> >SERVER 1 and SERVER 2,
C> >
C> >
C> >
C> >HernáMoreno Murillo.
C> >
C> >
C> >
C> >
C> >---------------------------------------------------------------------
C> >To unsubscribe, e-mail: [EMAIL PROTECTED]
C> >For additional commands, e-mail: [EMAIL PROTECTED]
C> 
C> -- 
C> Ceki Gíí
C> 
C>    The complete log4j manual: http://www.qos.ch/log4j/
C> 
C> 
C> 
C> ---------------------------------------------------------------------
C> To unsubscribe, e-mail: [EMAIL PROTECTED]
C> For additional commands, e-mail: [EMAIL PROTECTED]
C> 
C> 
=============End of Original message =============




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

Reply via email to