Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 93643 invoked from network); 22 Oct 2010 14:43:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Oct 2010 14:43:04 -0000 Received: (qmail 68743 invoked by uid 500); 22 Oct 2010 14:43:03 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 68347 invoked by uid 500); 22 Oct 2010 14:43:01 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 68339 invoked by uid 99); 22 Oct 2010 14:43:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Oct 2010 14:43:00 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Oct 2010 14:42:52 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 509D040E0009 for ; Fri, 22 Oct 2010 16:42:32 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7usMXw99v0Th for ; Fri, 22 Oct 2010 16:42:31 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id 76A5940E0007; Fri, 22 Oct 2010 16:42:31 +0200 (CEST) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: two listeners but only different logging References: <1287747367133-3232109.post@n5.nabble.com> X-Draft-From: ("nnfolder:mail.jakarta-ant-user" 68517) Date: Fri, 22 Oct 2010 16:42:31 +0200 In-Reply-To: <1287747367133-3232109.post@n5.nabble.com> (ciba's message of "Fri, 22 Oct 2010 04:36:07 -0700 (PDT)") Message-ID: <8739ry9tm0.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org On 2010-10-22, ciba wrote: > I am using two listeners : > net.sf.antcontrib.perf.AntPerformanceListener > org.apache.tools.ant.listener.Log4jListener > I want all print statements other than 'performance statistics' to be > printed on the console. so that means i cannot use the -logFile option. > How can we implement this differentiated behaviour of listeners in ant? I'm afraid you can't because of the way the performance listener is implemented. Looking at the code you can tell the performance listener to write its information to a file but there is no way to make it not write to System.out - this means its output will always end up being sent to the console unless you use a (different, probably non-existant) logger (not listener) that would filter out the results. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org