Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 65462 invoked from network); 13 Apr 2005 22:44:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2005 22:44:32 -0000 Received: (qmail 4976 invoked by uid 500); 13 Apr 2005 22:44:22 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4926 invoked by uid 500); 13 Apr 2005 22:44:21 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 4903 invoked by uid 99); 13 Apr 2005 22:44:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ext-ch1gw-3.online-age.net (HELO ext-ch1gw-3.online-age.net) (216.34.191.37) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 13 Apr 2005 15:44:20 -0700 Received: from int-ch1gw-2.online-age.net (int-ch1gw-2 [3.159.232.66]) by ext-ch1gw-3.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id j3DMiBPP019206 for ; Wed, 13 Apr 2005 18:44:11 -0400 (EDT) Received: from casjcx01nege.ne.ge.com (localhost [127.0.0.1]) by int-ch1gw-2.online-age.net (8.12.9/8.12.3/990426-RLH) with ESMTP id j3DMi9GC024466 for ; Wed, 13 Apr 2005 18:44:10 -0400 (EDT) Received: by casjcx01nege.ne.ge.com with Internet Mail Service (5.5.2657.72) id <239AQX5Y>; Wed, 13 Apr 2005 15:41:20 -0700 Message-ID: From: "Conelly, Luis (GE Energy, Non GE, GENE)" To: Ant Users List Subject: RE: Setting log level of the XmlLogger Date: Wed, 13 Apr 2005 15:53:47 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ups... sorry, I believe you are trying to achieve the opposite as I mentioned. However, IIRC, that question has been asked before. I believe that by tweaking a bit the xsl for the log, you can achieve what you want. The $ANT_HOME/etc/log.xsl file contains the following line Maybe tweaking a bit over there you can set the level you want Hope this actually helps. Luis -----Original Message----- From: Conelly, Luis (GE Energy, Non GE, GENE) [mailto:Luis1.Conelly@ge.com] Sent: Wednesday, April 13, 2005 5:31 PM To: Ant Users List Subject: RE: Setting log level of the XmlLogger this might help a bit: ant -logger org.apache.tools.ant.XmlLogger -verbose -logfile log.xml HTH Luis -----Original Message----- From: Ninju Bohra [mailto:ninju_bohra@yahoo.com] Sent: Wednesday, April 13, 2005 5:05 PM To: Ant Users Group Subject: Setting log level of the XmlLogger Hello all, This is a question of how ANT is used by the CruiseControl project (some cross-team synergy here, yea!!). If you are not using CruiseControl and/ANT this message may not be very useful (but still educational :-) ) When CruiseControl kicks off my ant build.xml file, I set the useLogger="false" in my element it spawns an ANT process with the following command parameters: [cc]Apr-13 17:02:24 AntBuilder - Executing Command: \\gsu1\gsu1-d\tools\ant\bin\ant.bat -listener org.apache.tools.ant.XmlLogger -DXmlLogger.file=log.xml -Dcclastbuildtimestamp=20050413153327 -Dlabel=build.36 -Dcclastgoodbuildtimestamp=20050413153327 -Dlastbuildsuccessful=false -Dst.cybere.changed=true -Dcvstimestamp=2005-04-13 22:02:07 GMT -Dcctimestamp= 20050413170207 -Dsuperbuild_props_loc=C:/ccbuild/Mainline/superbuild.properties -buildfile build.xml test.build Now the ANT process is invoked using the XmlLogger (in listener mode) to capture the output. My issue is that the granularity of the data written to the XML output is of a greater detail that what is written to the screen. Looking at the code for the XmlLogger class, I see that the value of the msgOutputLevel attribute is initialized to Project.MSG_DEBUG. It is this level that is allowing more data to be written to the log file (I believe). Is there any way to set the XmlLogger output level to Project.MSG_INFO from the command line? Thanx, Ninju Bohra __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org