ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 57909] New: Add getMessageOutputLevel() method to
Date Fri, 08 May 2015 18:47:35 GMT

            Bug ID: 57909
           Summary: Add getMessageOutputLevel() method to
           Product: Ant
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core

I am writing a specialized set of ant tasks.  I have debug code embedded in
these tasks.  I would like an integrated solution for logging data from the
debug code that derives its logging level from the logger.

I have log() statements set up with the level parameter, but it is not as
effecient as checking the level myself before calling log().  I would be able
to avoid processing all the calls to other methods that gather the data to put
into the log record text.

It appears that a simple extension to the DefaultLogger would do the trick.  I
would like a getMessageOutput() that returns current logging level:

     * Return the current level of message this logger responds to.
    public int getMessageOutputLevel(int level) {
        return this.msgOutputLevel;

You are receiving this mail because:
You are the assignee for the bug.

View raw message