?
Solved

Using DailyRollingAppender and the date in the log is off by one day

Posted on 2008-01-28
4
Medium Priority
?
560 Views
Last Modified: 2008-02-07
Any help would be appreciated, It seems that the time stamp in my logs except
for the current log is of by a day.  For example my activity.log.20040901
contains entries for 09/02/2004.
0
Comment
Question by:TheMajestic
  • 3
4 Comments
 
LVL 3

Expert Comment

by:schybert
ID: 20758756
Can you please post the configuration for the appender?
0
 
LVL 3

Accepted Solution

by:
schybert earned 2000 total points
ID: 20758916
You have probably encountered this bug http://issues.apache.org/bugzilla/show_bug.cgi?id=43728 in some variation.
0
 
LVL 4

Author Comment

by:TheMajestic
ID: 20774356
log4j.logger.com.matrixone.ps.tomcat=debug, R
log4j.additivity.com.matrixone.ps.tomcat=false
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=/apps/WebSphere/pdmprod/AppServer/logs/ActionServletLogs/ExtendedRequestLog.log
log4j.appender.R.DatePattern='.'yyyy-MM-dd
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{ISO8601}\t%p\t%m\n


this is the script i wrote.

the thing is half of the log is appened in ExtendedRequestLog.log and  other portion is appended in ExtendedRequestLog<Yesterdaydate>.log
0
 
LVL 3

Expert Comment

by:schybert
ID: 20784756
And you are sure you don't have two java processes writing to the same file?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month3 days, 11 hours left to enroll

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question