https://bz.apache.org/bugzilla/show_bug.cgi?id=57909
Bug ID: 57909
Summary: Add getMessageOutputLevel() method to
DefaultLogger.java
Product: Ant
Version: unspecified
Hardware: PC
Status: NEW
Severity: enhancement
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
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.