ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn McAllister <gl...@somanetworks.com>
Subject Re: how to multiple logging output
Date Sun, 11 Mar 2001 20:00:16 GMT
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

Mime
View raw message