From user-return-52969-apmail-ant-user-archive=ant.apache.org@ant.apache.org Fri Oct 28 11:35:05 2005 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 65608 invoked from network); 28 Oct 2005 11:35:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Oct 2005 11:35:04 -0000 Received: (qmail 32466 invoked by uid 500); 28 Oct 2005 11:34:58 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 32423 invoked by uid 500); 28 Oct 2005 11:34:57 -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 32412 invoked by uid 99); 28 Oct 2005 11:34:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 04:34:57 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.86.89.68] (HELO smtpauth08.mail.atl.earthlink.net) (209.86.89.68) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 04:34:54 -0700 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=mJWBH6hDqF6uyxLhqs5SkKk3ZwEVRnKcqrZ0FL8Rr/cDStg//BBd+6ujWcY7OJ7o; h=Received:User-Agent:Date:Subject:From:To:Message-ID:In-Reply-To:Mime-version:Content-type:Content-transfer-encoding:X-ELNK-Trace:X-Originating-IP; Received: from [68.164.6.50] (helo=[192.168.1.100]) by smtpauth08.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EVSVH-0006lU-Fp for user@ant.apache.org; Fri, 28 Oct 2005 07:34:35 -0400 User-Agent: Microsoft-Entourage/11.0.0.040405 Date: Fri, 28 Oct 2005 06:34:36 -0500 Subject: Re: Logging - I need a concept From: "Bob Hays, Computer Geek" To: Ant users list Message-ID: In-Reply-To: <633BB4DF7F45734B841BF0FD012734BC0E5B0B@schb7sw3-011.schb7.swisslog.net> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable X-ELNK-Trace: 997dbd53cd2f55e30c3711e909d0b2f7239a348a220c260931b8e3c31778a34d127c59fe5c73072d548b785378294e88350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 68.164.6.50 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Have you tried the XML logger? The manual pages on the ant website are pretty good for instruction on how to use a given logger, but if you need more help just ask. Otherwise, you can take the XML output and then proces= s it using XSLT to get the exact detail you want. If that doesn't do what you need (and I think you should consider carefully what you need given the tools at hand before cobbling), then you might want to write your own logger - I've done that, its not hard (again the ant website manual has all the starting info you need), and I believe the sourc= e code for what I've done is in a zip file on my website someplace - if look and can't find it (my website URL is in my sig), then drop me an email and I'll send it to you. I wrote a multi-logger so I could use more than one logger at a time (had a need and scratched it). This allowed me to do some neat things like provide an RSS feed of build results. Hope that helps. Have fun! - Bob On 10/28/05 6:24 AM, "Remo Liechti" wrote: > Hi > Yes, but this logs also stuff I dont need... Like: >=20 > getDocuments: > [ftp] sending files > [ftp] 1 files sent > [delete] Deleting 1 files from C:\temp\mssDocPublisher >=20 >=20 >=20 > This part should look like this in the logile: >=20 > Sending Zip file "myFile.zip" to myFTPServer/sopme/location, containing: > - File 1 > - File 2 > - File 3 > - ... >=20 > Deleted file "MyFile.zip" from from C:\temp\mssDocPublisher >=20 > You see, I need a very different logger to do such things. May be it is > possible to run a loger on its own and send the information that has to b= e > logged to it? I mean, I write a small Java logger which is able to receiv= e > data somehow, and it writes the data in the log file. This loger has to b= e > started via the ant scripot as the first action and shut down at the end. >=20 > Or something like this? If so, how can I communicate from ant to this log= er? > Or is it possible to write an ant task which logs the information and whi= ch > can be accesed out of my three hava programs? >=20 > Remo >=20 >=20 >=20 >=20 >=20 >> -----Original Message----- >> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] >> Sent: Freitag, 28. Oktober 2005 12:52 >> To: user@ant.apache.org >> Subject: AW: Logging - I need a concept >>=20 >> Hi Remo, >>=20 >> have you tried the "-logfile" option? >>=20 >>=20 >> Jan=20 >>=20 >>> -----Urspr=FCngliche Nachricht----- >>> Von: Remo Liechti [mailto:remo.liechti@swisslog.com] >>> Gesendet: Freitag, 28. Oktober 2005 12:44 >>> An: Ant Users List >>> Betreff: Logging - I need a concept >>>=20 >>> Hi all >>> I have to implement a loging function to my ant scripts, but >> I really=20 >>> don't know how to do it... >>>=20 >>> I got a script like this like the one attached. >>>=20 >>> In this script I have some echos, do some file deleting, ftp >> upload and=20 >>> call three java programs. >>>=20 >>> The stuff that has to be logged in ONE file SOMWHERE(this >> location has=20 >>> to be configurable). I write the things in order like they >> run in the=20 >>> script >>>=20 >>> Who started the script -> username of the windows logged-in >> user When=20 >>> did he start the script Which files have been deleted from which >>> location The system outputs of the java programs The echos >> of the ant=20 >>> script, and the echos of the subscripts proceeded by the "ant" task. >>> Which ftp actions proceeded: example: which files have been >> uploaded to=20 >>> which location >>>=20 >>> I read the Listeners & Loggers page in the ant >> documentation, but didnt >>> get it how to realise such a logging I need. >>>=20 >>> Any hints or ideas? >>>=20 >>> Thanks >>>=20 >>> Remo >>>=20 >>>=20 >>>=20 >>>=20 >>> Remo Liechti >>> -- >>> Swisslog AG >>> Webereiweg 3 >>> Postfach 155 >>> CH - 5033 Buchs/AG >>>=20 >>> Phone: +41 (0)62 837 43 45 >>> Fax: +41 (0)62 837 44 99 >>> www.swisslog.com >>> remo.liechti@swisslog.com >>> --------------------------------------------------------------- >>> --------- >>> ------------ >>>=20 >>>=20 >>> About Swisslog >>> Swisslog is a global provider of integrated logistic solutions for >>> warehouses, distribution centers and hospitals. >>> Swisslog's solutions increase their customer's flexibility, >>> responsiveness and quality of service, while minimizing logistics >>> costs. >>>=20 >>> ____________________________________________________________ >>> This message may contain legally privileged or confidential >> information=20 >>> and is therefore addressed to the named persons only. >>> The recipient should inform the sender and delete this message, if >>> he/she is not named as addressee. >>> The sender disclaims any and all liability for the integrity and >>> punctuality of this message. >>> The sender has activated an automatic virus scanning by Messagelabs, >>> but does not guarantee the virus free transmission of this message. >>>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For >> additional commands, e-mail: user-help@ant.apache.org >>=20 >>=20 >> ____________________________________________________________ >> This message has been checked for all known viruses by Messagelabs. >>=20 >=20 > ____________________________________________________________ > This message may contain legally privileged or confidential > information and is therefore addressed to the named persons only. > The recipient should inform the sender and delete this message, > if he/she is not named as addressee. > The sender disclaims any and all liability for the integrity > and punctuality of this message. > The sender has activated an automatic virus scanning by > Messagelabs, but does not guarantee the virus free > transmission of this message. >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 --=20 Bob Hays, Computer Geek http://www.alephnaught.com "The greatest deception men suffer is from their own opinions." -- Leonardo da Vinci --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org