ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remo Liechti" <remo.liec...@swisslog.com>
Subject RE: Logging - I need a concept
Date Fri, 28 Oct 2005 11:55:54 GMT
Hi Bob
Thank you for the good information provided. I think I'll try
ant -logger org.apache.tools.ant.XmlLogger -verbose -logfile build_log.xml

With extra verbose I got most of the ionformation I need. After running this ant script I
could call a throurth java proghram which analyzes this xml log information and write ist
own log out of that. I think this would be the easiest way to do it.

I'll remember you if this would not be the solution I need to get back to you on your own
programmed logger. RSS Feeds sounds nice, could also be a nice enhancement to this logging...
;)

Remo
 

> -----Original Message-----
> From: Bob Hays, Computer Geek [mailto:purplehayz@earthlink.net] 
> Sent: Freitag, 28. Oktober 2005 13:35
> To: Ant users list
> Subject: Re: Logging - I need a concept
> 
> 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 process 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 
> source 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" <remo.liechti@swisslog.com> wrote:
> 
> > Hi
> > Yes, but this logs also stuff I dont need... Like:
> > 
> > getDocuments:
> >       [ftp] sending files
> >       [ftp] 1 files sent
> >    [delete] Deleting 1 files from C:\temp\mssDocPublisher
> > 
> > 
> > 
> > This part should look like this in the logile:
> > 
> > Sending Zip file "myFile.zip" to 
> myFTPServer/sopme/location, containing:
> > - File 1
> > - File 2
> > - File 3
> > - ...
> > 
> > Deleted file "MyFile.zip" from from C:\temp\mssDocPublisher
> > 
> > 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 be logged to it? I mean, I write a small Java logger 
> which is 
> > able to receive data somehow, and it writes the data in the 
> log file. 
> > This loger has to be started via the ant scripot as the 
> first action and shut down at the end.
> > 
> > Or something like this? If so, how can I communicate from 
> ant to this loger?
> > Or is it possible to write an ant task which logs the 
> information and 
> > which can be accesed out of my three hava programs?
> > 
> > Remo
> > 
> > 
> > 
> > 
> > 
> >> -----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
> >> 
> >> Hi Remo,
> >> 
> >> have you tried the "-logfile" option?
> >> 
> >> 
> >> Jan
> >> 
> >>> -----Urspr√ľngliche 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
> >>> 
> >>> Hi all
> >>> I have to implement a loging function to my ant scripts, but
> >> I really
> >>> don't know how to do it...
> >>> 
> >>> I got a script like this like the one attached.
> >>> 
> >>> In this script I have some echos, do some file deleting, ftp
> >> upload and
> >>> call three java programs.
> >>> 
> >>> The stuff that has to be logged in ONE file SOMWHERE(this
> >> location has
> >>> to be configurable). I write the things in order like they
> >> run in the
> >>> script
> >>> 
> >>> Who started the script -> username of the windows logged-in
> >> user When
> >>> 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
> >>> script, and the echos of the subscripts proceeded by the 
> "ant" task.
> >>> Which ftp actions proceeded: example: which files have been
> >> uploaded to
> >>> which location
> >>> 
> >>> I read the Listeners & Loggers page in the ant
> >> documentation, but didnt
> >>> get it how to realise such a logging I need.
> >>> 
> >>> Any hints or ideas?
> >>> 
> >>> Thanks
> >>> 
> >>> Remo
> >>> 
> >>> 
> >>> 
> >>> 
> >>> Remo Liechti
> >>> --
> >>> Swisslog AG
> >>> Webereiweg 3
> >>> Postfach 155
> >>> CH - 5033 Buchs/AG
> >>> 
> >>> Phone: +41 (0)62 837 43 45
> >>> Fax: +41 (0)62 837 44 99
> >>> www.swisslog.com
> >>> remo.liechti@swisslog.com
> >>> ---------------------------------------------------------------
> >>> ---------
> >>> ------------
> >>> 
> >>> 
> >>> 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.
> >>> 
> >>> ____________________________________________________________
> >>> 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.
> >>> 
> >> 
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> >> additional commands, e-mail: user-help@ant.apache.org
> >> 
> >> 
> >> ____________________________________________________________
> >> This message has been checked for all known viruses by Messagelabs.
> >> 
> > 
> > ____________________________________________________________
> > 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.
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional 
> > commands, e-mail: user-help@ant.apache.org
> > 
> 
> --
> 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
> 
> 
> ____________________________________________________________
> This message has been checked for all known viruses by Messagelabs.
> 

____________________________________________________________
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message