dcsimg
Log4j timestamp error in server.log
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   andrei_carcu
Posted On:   Monday, September 26, 2011 10:47 AM

Hello all, I have an issue related to the timestamp in the server.log. I need some help related to this issue. Here is the problem: [root@OTXBE02 ~]# tail -f /var/log/mcdp/server.log 09/15 16:26:05,820 ERROR[com...... [root@OTXBE02 ~]# date Thu Sep 15 15:26:08 CET 2011 As you can see there is an hour difference between the server date and the timestamp from the server.log. In order to solve this problem I have tried almost everything that I could find about this on internet: 1) I have used the tzdupdate() tzupdater version 1.3.40-b01 JRE time zone data version: tzdata2011h Embedded time zone data version: tzdata201   More>>

Hello all,


I have an issue related to the timestamp in the server.log. I need some help related to this issue.

Here is the problem:

[root@OTXBE02 ~]# tail -f /var/log/mcdp/server.log
09/15 16:26:05,820
ERROR[com......

[root@OTXBE02 ~]# date
Thu Sep 15 15:26:08 CET 2011

As you can see there is an hour difference between the server date and the timestamp from the server.log.


In order to solve this problem I have tried almost everything that I could find about this on internet:

1) I have used the tzdupdate()
tzupdater version 1.3.40-b01
JRE time zone data version: tzdata2011h
Embedded time zone data version: tzdata2011h

2) copied the log4j.properties to WEB-INF/classes
/opt/jboss-4.0.3SP1/server/mcdp-std/deploy/axis2.war/WEB-INF/classes/log4j.properties

3) also I've checked to have the same log4j.jar

The log4j.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
















































and log4.properties is like this:

# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE

# Set the enterprise logger priority to FATAL
log4j.logger.org.apache.axis2.enterprise=FATAL
log4j.logger.de.hunsicker.jalopy.io=FATAL
log4j.logger.httpclient.wire.header=FATAL
log4j.logger.org.apache.commons.httpclient=FATAL

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleApp ender
log4j.appender.CONSOLE.layout=org.apache.log4j.Pat ternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%p [%d{ISO8601}] %c{2} %x - %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppend er
log4j.appender.LOGFILE.File=axis2.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.Pat ternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%p [%d{ISO8601}] %c{2} %x - %m%n    <<Less
About | Sitemap | Contact