Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 15353 invoked from network); 21 Jun 2005 03:08:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jun 2005 03:08:32 -0000 Received: (qmail 64264 invoked by uid 500); 21 Jun 2005 03:08:27 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 64236 invoked by uid 500); 21 Jun 2005 03:08:27 -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 64223 invoked by uid 99); 21 Jun 2005 03:08:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2005 20:08:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 20 Jun 2005 20:08:28 -0700 Received: (qmail 15317 invoked from network); 21 Jun 2005 03:08:26 -0000 Received: from localhost.hyperreal.org (HELO ?IPv6:::1?) (127.0.0.1) by localhost.hyperreal.org with SMTP; 21 Jun 2005 03:08:26 -0000 Mime-Version: 1.0 (Apple Message framework v730) In-Reply-To: <20050620223018.45416.qmail@web21326.mail.yahoo.com> References: <20050620223018.45416.qmail@web21326.mail.yahoo.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <29064A6D-CE99-438D-A0BA-6BC6BED101A9@apache.org> Content-Transfer-Encoding: 7bit From: Curt Arnold Subject: Re: how do i delete log files Date: Mon, 20 Jun 2005 22:09:34 -0500 To: Log4J Users List X-Mailer: Apple Mail (2.730) X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On a Unix-like platform, you can just write your log files to the / tmp directory which will be deleted on the next restart. You can use "${java.io.tmpdir}" in a configuration file to specify that in a platform-independent manner, but I do not believe that temporary directories get deleted automatically on Windows. Or you can use a RollingFileAppender which would allow you to specify a maximum file size that a log file should be able grow to before being closed and renamed and specify the maximum number of old log files that should be preserved. On Jun 20, 2005, at 5:30 PM, Qian Wang wrote: > how do i delete log files automatically? > > thank you all very much. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org