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