Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 32584 invoked from network); 3 Dec 2003 15:42:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Dec 2003 15:42:37 -0000 Received: (qmail 39044 invoked by uid 500); 3 Dec 2003 15:42:17 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 39010 invoked by uid 500); 3 Dec 2003 15:42:17 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 38994 invoked from network); 3 Dec 2003 15:42:17 -0000 Received: from unknown (HELO mail32.internethostingsolutions.com) (69.49.100.32) by daedalus.apache.org with SMTP; 3 Dec 2003 15:42:17 -0000 X-POP-User: kkemppainen.envistatech.com Received: from RONDELL8200 ([216.123.228.163]) by mail32.internethostingsolutions.com (8.12.10/8.12.9) with ESMTP id hB3Fg70P086805 for ; Wed, 3 Dec 2003 10:42:18 -0500 (EST) From: "Ron Coutts" To: "'Ant Developers List'" Subject: RE: TeeLogger class Date: Wed, 3 Dec 2003 08:42:06 -0700 Message-ID: <002401c3b9b4$081c9a90$9e3c010a@envistatech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <879A5AD5DD0ED511891F0003473A9B5608FF7387@Z011004> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks for the info Jan. I will review the docs you pointed me to and likely put together a proper contribution a week or two. Ron > -----Original Message----- > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] > Sent: December 3, 2003 12:58 AM > To: dev@ant.apache.org > Subject: RE: TeeLogger class > > > The manual contains information about contributing in the > section "Developing with Ant | Ant Task Guidelines" > (http://ant.apache.org/ant_task_guidelines.html) > > > The tutorial "Tasks using Properties & Filesets" uses that for > explaining how to contribute a new task. (document not > finished yet) But maybe the informations already present will > help you. > http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/docs/manual/t > utorial-tasks- > filesets-properties.html?rev=1.2&content-type=text/plain#contribute > > > Directly to the first question in the "Contribute" area of > the tutorial > "is our task welcome? :-) Simply ask on the user list" > > I thought for myself to implement a TeeLogger, so please > contribute it :-) > > > > Jan > > > > -----Original Message----- > > From: Ron Coutts [mailto:rcoutts@envistatech.com] > > Sent: Wednesday, December 03, 2003 7:46 AM > > To: dev@ant.apache.org > > Subject: TeeLogger class > > > > > > One problem that I've had with Ant is that the logging > > facilities allow > > directing the output to either the console or a log file, but > > typically > > not both. This is fairly restrictive when you want to watch the > > progress of a build and have an log of build that is > identical to what > > went by on the console. So in the spirit of the 'tee' command line > > utility I've developed a TeeLogger class that extends > > DefaultLogger and > > works a bit like MailLogger and a bit like XmlLogger. It can > > direct log > > output to two sinks simultaneously such as to the console and > > a file or > > to two files at the same time (not that this latter feature is worth > > much). > > > > Here are some examples of specifying TeeLogger on the Ant > > command line: > > > > ant -logger com.envistatech.tools.ant.TeeLogger > > Directs log output to console and log.txt by default. > > > > ant -logger com.envistatech.tools.ant.TeeLogger > > -DTeeLogger.file=mylog.txt > > Directs log output to console and mylog.txt. > > > > ant -logger com.envistatech.tools.ant.TeeLogger > > -DTeeLogger.file=mylog.txt -logfile mylog2.txt > > Directs log output to mylog.txt and mylog2.txt. > > > > > > I think this might be useful to others and I wouldn't mind > > contributing > > it. So my questions are, is this a worthy contribution and > > if so what's > > happens next? This would be my first code contribution and > I'm not at > > all familiar with the process of contributing code. > > > > Ron > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > > For additional commands, e-mail: dev-help@ant.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org