Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 25180 invoked from network); 12 May 2009 13:01:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 May 2009 13:01:53 -0000 Received: (qmail 4259 invoked by uid 500); 12 May 2009 13:01:52 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 4232 invoked by uid 500); 12 May 2009 13:01:52 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 4221 invoked by uid 99); 12 May 2009 13:01:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 13:01:52 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.30.64] (HELO QMTA07.emeryville.ca.mail.comcast.net) (76.96.30.64) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 13:01:41 +0000 Received: from OMTA13.emeryville.ca.mail.comcast.net ([76.96.30.52]) by QMTA07.emeryville.ca.mail.comcast.net with comcast id qc8H1b00117UAYkA7d1Lu2; Tue, 12 May 2009 13:01:20 +0000 Received: from [192.168.10.102] ([98.200.165.8]) by OMTA13.emeryville.ca.mail.comcast.net with comcast id qd0y1b0070BBgh68Zd1K57; Tue, 12 May 2009 13:01:20 +0000 Message-Id: <20D8852A-4976-4049-9A48-1523BD8E250E@apache.org> From: Curt Arnold To: "Log4J Users List" In-Reply-To: <4AFA773813FEC64B84FC256F48D412A1559DDD24@GDVMAIL1> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: DailyRollingFileAppender, but no new file the next day - why? Date: Tue, 12 May 2009 08:00:56 -0500 References: <4AFA773813FEC64B84FC256F48D412A1559DDD24@GDVMAIL1> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On May 12, 2009, at 12:31 AM, Linnemann, Gerrit wrote: > Hallo, > > I'm using the DailyRollingFileAppender. The Tomcat runs 24/7. But > I've to restart Tomcat to get a new log file. It seams that log4j > only log until midnight. So I lost information. > Here is my configuration: > > > class="org.apache.log4j.DailyRollingFileAppender"> > > > > > > > > > > After restarting the server it works fine, but when I came to work > in the morning no new log file is started and there're no new log > entries since the last day. > > What can I do? > Thanking you in anticipation, > Gerrit > > I'm not sure if it would fix your issue, but the org.apache.log4j.rolling.RollingFileAppender in the extras companion (which can replace DRFA) avoids several (but not all) of the scenarios that would cause org.apache.log4j.DRFA problems. Knowing Platform (Windows, Linux, etc) would be helpful. Are there any file scanners or indexers that might lock the file, have you tried setting to see if there were any diagnostic issued. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org