You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/01/11 13:13:03 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant BuildLogger.java DefaultLogger.java

donaldp     01/01/11 04:13:03

  Modified:    src/main/org/apache/tools/ant BuildLogger.java
                        DefaultLogger.java
  Log:
  Fixed documentation of Loggers and made default value of log level explicit.
  
  Submitted By: "Rosen, Alex" <ar...@silverstream.com>
  
  Revision  Changes    Path
  1.4       +4 -0      jakarta-ant/src/main/org/apache/tools/ant/BuildLogger.java
  
  Index: BuildLogger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/BuildLogger.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BuildLogger.java	2001/01/03 14:18:26	1.3
  +++ BuildLogger.java	2001/01/11 12:13:01	1.4
  @@ -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.
        */
  
  
  
  1.13      +7 -1      jakarta-ant/src/main/org/apache/tools/ant/DefaultLogger.java
  
  Index: DefaultLogger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/DefaultLogger.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DefaultLogger.java	2001/01/03 14:18:26	1.12
  +++ DefaultLogger.java	2001/01/11 12:13:02	1.13
  @@ -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.
        */