ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Logging - I need a concept
Date Fri, 28 Oct 2005 11:26:46 GMT
Maybe combination between -logfile and -debug/-verbose ?
Would be easier than writing a new logger ...

Next step would trying the Log4J-Logger and play with the Log4J configuration.


Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Remo Liechti [mailto:remo.liechti@swisslog.com] 
>Gesendet: Freitag, 28. Oktober 2005 13:24
>An: Ant Users List
>Betreff: RE: Logging - I need a concept
>
>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
>
>

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


Mime
View raw message