Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 89883 invoked from network); 30 May 2006 20:49:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 20:49:47 -0000 Received: (qmail 68672 invoked by uid 500); 30 May 2006 20:49:46 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 68630 invoked by uid 500); 30 May 2006 20:49:45 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 68618 invoked by uid 99); 30 May 2006 20:49:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 13:49:45 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.200.116] (HELO web30503.mail.mud.yahoo.com) (68.142.200.116) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 30 May 2006 13:49:43 -0700 Received: (qmail 83270 invoked by uid 60001); 30 May 2006 20:49:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FjhG61TTZHvEY6h7G5HWedFwOMnM2iz3/V3h8XBho9VBaavlfDaE48lNs0gKLGDXo9OxatemwcLmme0wwk0KRz3IFeurPF2ACyzRbdcxxz3aH0NW1MT5kQIexSwwdTy9PHk4lbqadP0q4Tkw8IwMA5G53e9jZWqtZRstwPsrREI= ; Message-ID: <20060530204921.83268.qmail@web30503.mail.mud.yahoo.com> Received: from [65.24.255.41] by web30503.mail.mud.yahoo.com via HTTP; Tue, 30 May 2006 13:49:21 PDT Date: Tue, 30 May 2006 13:49:21 -0700 (PDT) From: Ron Grabowski Subject: Re: Compress & Delete old logs To: Log4NET User In-Reply-To: <5f9068320605300907w2b242c47oda0b2d2049f264d1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The RollingFileAppender does not have compression support built-in. What should happen if I set my rolling log file size to 200mb? Should my application stop responding until the compression process is complete? According to this page: http://tinyurl.com/q48hv http://logging.apache.org/log4net/release/sdk/log4net.Appender.RollingFileAppender.MaxSizeRollBackups.html The MaxSizeRollBackups property is "the maximum number of backup files that are kept before the oldest is erased". Are you able to roll files on a daily basis then run another program every day to compress old log files? There may be general purpose command line utilities that do this already. --- Michael Schall wrote: > Is there a way with the rollingfile appender to have it compress > itself as it is rolling to the next file? I would name my logs by > date, and would like the old files to compress (zip, cab, some format > readable without extra installs) as a new file is being created. > > Also, is it possible to have a max number of files saved? We would > like to only keep the last x days of logs. > > So day to day the files would be compressed and after x days, the > compressed files would be removed. > > Is this possible currently, or planned in the future? > > Mike >