ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: More default behavior expected
Date Mon, 17 Oct 2005 13:43:51 GMT
>When I create a task, the 'verbosity' level of the log is a 
>bit weird IMHO.
>Namely, I find it weird that the fact that I set the switch 
>'-v' when I run the ant task is not kick up the verbosity 
>level of the task. 

A task doesnt have a log level. The log level is set for Ants logging

public class MyLogClass extends Task {
    public void execute() {
        log("error message", Project.MSG_ERR);
        log("warn message", Project.MSG_WARN);
        log("info message", Project.MSG_INFO);
        log("verbose message", Project.MSG_VERBOSE);
        log("debug message", Project.MSG_DEBUG);
        log("default message - should be info");

same as for <echo>.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message