Return-Path: Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: (qmail 66599 invoked from network); 5 Oct 2006 13:21:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2006 13:21:32 -0000 Received: (qmail 49411 invoked by uid 500); 5 Oct 2006 13:21:24 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 49157 invoked by uid 500); 5 Oct 2006 13:21:23 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 49135 invoked by uid 99); 5 Oct 2006 13:21:23 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2006 06:21:23 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [195.141.59.252] ([195.141.59.252:49438] helo=firewall.lehmannholding.ch) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 5F/E4-20288-AA605254 for ; Thu, 05 Oct 2006 06:20:57 -0700 Received: from citrix.lehmannholding.ch by firewall.lehmannholding.ch via smtpd (for idunn.apache.osuosl.org [140.211.166.84]) with SMTP; Thu, 5 Oct 2006 15:12:04 +0200 Received: from mail.lehmannholding.ch ([192.168.2.5]) by srv-gw-01.lehmannholding.ch with InterScan VirusWall; Thu, 05 Oct 2006 15:25:42 +0200 Received: from mail.lehmannholding.ch by mail.lehmannholding.ch via smtpd (for citrix.lehmannholding.ch [192.168.4.5]) with SMTP; Thu, 5 Oct 2006 15:10:20 +0200 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: Re: Enhanced FileAppender Date: Thu, 5 Oct 2006 15:18:56 +0200 Message-ID: <795BE475DA810C4B80E8CFD07EE8CD1C1ABEE2@srv-ex-2003.duebendorf.autronic.lehmannholding.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: Enhanced FileAppender Thread-Index: AcbofH7vLJy95zIJR+qWr/IytyGxNgAAp44g From: "Patrick Wyss" To: "Log4J Developers List" X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > Well, in recurrent scheduling servers that open a log file=20 > per schedule,=20 > that would be totally necessary. I, for example, must use=20 > something that has=20 > append in it... i think what curt meant was that *only* append=3Dtrue makes sense = here... so that's why it should not be possible to set the property to false. but maybe instead of subclassing FileAppender it would make more sense = anyway to use the decorator pattern. =3D> "MultiFileAppender" which = takes a FileAppender as parameter. so you could wrap it around any = existing FileAppenders. > > At least not use a thread to manage it by default. Maybe an = optional=20 > > parameter to specify a timer interval or an public method that an=20 > > interested user could add to a scheduler. >=20 > Fine by me. But I think the default should be a pool and the=20 > checks should=20 > be done when creating a new file descriptor... i think a pool of configurable size is enough. starting new threads in = log4j is IMO no good idea anyway... cheers patrick --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org