ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hughes <leslie.hug...@rubus.com>
Subject RE: how to multiple logging output
Date Mon, 12 Mar 2001 09:12:52 GMT
Bit off topic but....

Of course, on Win systems that don't have tail as standard, you can use
http://sources.redhat.com/cygwin/

If you're as lazy as me, create a shortcut on your start menu to tail -f
xyz.log and then you can monitor with a single click.....

Les.



> -----Original Message-----
> From: Ken Wood [mailto:kwood@i2.com]
> Sent: 11 March 2001 22:49
> To: ant-dev@jakarta.apache.org
> Subject: Re: how to multiple logging output
> 
> 
> There is also the old fashioned way....
> Launch your build in the background with logging to a file
> say, Xyz.log, and then do "tail -f Xyz.log" to
> watch it on screen. If you are on a brain dead
> OS that doesn't know how to do a task in
> the background, in another window do "tail -f Xyz.log"
> 
> You can have your cake and eat it too...
> 
> Glenn McAllister wrote:
> > 
> > Nicolas GANDRIAU wrote:
> > 
> > > Sorry to ask such a basic question, but is there a way to 
> launch a build
> > > operation with ant
> > > ant have the logging info in both a log file and on the screen?
> > >
> > > I can have each one separatly, but I cannat have the both
> > > simultaneously.
> > 
> > At the moment, no.  If you want something like that, you 
> need a custom
> > logger that will do what you want.  See the class
> > org.apache.tools.ant.DefaultLogger for an example.  Oh, and
> > org.apache.tools.ant.NoBannerLogger is a good example of a 
> custom logger.
> > 
> > You then use it with the command line
> > 
> > ant -logger your.custom.class.here
> > 
> > to invoke it.
> > 
> > Glenn
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-dev-help@jakarta.apache.org
> 

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


Mime
View raw message