(1) Clarified that constants for the message output levels are defined in
Project.java, and specified the relative verboseness of the constants.

(2) Explicitly set the default message level of DefaultLogger to MSG_ERR. It
was implicitly MSG_ERR (i.e. zero) before, but this makes it more obvious.

Alex

Index: DefaultLogger.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/DefaultLogger.java,v
retrieving revision 1.12
diff -u -r1.12 DefaultLogger.java
--- DefaultLogger.java  2001/01/03 14:18:26     1.12
+++ DefaultLogger.java  2001/01/10 22:04:06
@@ -66,7 +66,7 @@
 
     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 @@
      *
      * 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.
      */
Index: BuildLogger.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/BuildLogger.java,v
retrieving revision 1.3
diff -u -r1.3 BuildLogger.java
--- BuildLogger.java    2001/01/03 14:18:26     1.3
+++ BuildLogger.java    2001/01/10 22:02:37
@@ -70,6 +70,10 @@
      *
      * 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.
      */

Reply via email to