ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Wood <kw...@i2.com>
Subject Re: how to multiple logging output
Date Sun, 11 Mar 2001 22:49:18 GMT
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


Mime
View raw message