Thanks a lot Luis, It works correct.
Hern�n Moreno Murillo. Ing.Proyectos Senior ---------------------------------------------- Departamento de Sistemas Conecel - Porta Av. Francisco de Orellana y Alberto Borges * :2-693693 Ext. 4145 *:09-9488656 * :[EMAIL PROTECTED] * :www.porta.net --------------------------------------------- > CONFIDENTIALITY NOTICE: The preceding e-mail message contains information > that is confidential and is intended exclusively for the individual or > entity to which it is addressed. If you are not the intended recipient, > any withholding, use, dissemination, distribution, or reproduction of this > message is strictly prohibited and unlawful. If you receive this message > by error, please reply to the sender to advise of the erroneous > transmission and immediately delete the message from your system. CONECEL > accepts no liability over any information, opinion or advise contained > herein which is not relative to official business issues. > > > -----Mensaje original----- > De: Luis DiazRojas [SMTP:[EMAIL PROTECTED] > Enviado el: Martes, 01 de Febrero de 2005 9:57 > Para: Log4J Users List > Asunto: Re[2]: Problem with delayed date > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
