Browse Source

Fixed documentation of Loggers and made default value of log level explicit.

Submitted By: "Rosen, Alex" <arosen@silverstream.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268434 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
94ed3da958
2 changed files with 11 additions and 1 deletions
  1. +4
    -0
      src/main/org/apache/tools/ant/BuildLogger.java
  2. +7
    -1
      src/main/org/apache/tools/ant/DefaultLogger.java

+ 4
- 0
src/main/org/apache/tools/ant/BuildLogger.java View File

@@ -70,6 +70,10 @@ public interface BuildLogger extends BuildListener {
*
* Only messages with a message level lower than or equal to the given level are
* output to the log.
* <P>
* Constants for the message levels are in Project.java. The order of
* the levels, from least to most verbose, is MSG_ERR, MSG_WARN,
* MSG_INFO, MSG_VERBOSE, MSG_DEBUG.
*
* @param level the logging level for the logger.
*/


+ 7
- 1
src/main/org/apache/tools/ant/DefaultLogger.java View File

@@ -66,7 +66,7 @@ public class DefaultLogger implements BuildLogger {

protected PrintStream out;
protected PrintStream err;
protected int msgOutputLevel;
protected int msgOutputLevel = Project.MSG_ERR;
private long startTime = System.currentTimeMillis();

protected static String lSep = System.getProperty("line.separator");
@@ -78,6 +78,12 @@ public class DefaultLogger implements BuildLogger {
*
* Only messages with a message level lower than or equal to the given level are
* output to the log.
* <P>
* Constants for the message levels are in Project.java. The order of
* the levels, from least to most verbose, is MSG_ERR, MSG_WARN,
* MSG_INFO, MSG_VERBOSE, MSG_DEBUG.
*
* The default message level for DefaultLogger is Project.MSG_ERR.
*
* @param level the logging level for the logger.
*/


Loading…
Cancel
Save