avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosu...@apache.org
Subject cvs commit: jakarta-avalon-logkit/src/java/org/apache/log Priority.java
Date Wed, 27 Nov 2002 07:54:37 GMT
leosutic    2002/11/26 23:54:37

  Modified:    src/java/org/apache/log Priority.java
  Log:
  Added NONE as a logging priority.
  
  Revision  Changes    Path
  1.13      +7 -0      jakarta-avalon-logkit/src/java/org/apache/log/Priority.java
  
  Index: Priority.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/Priority.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Priority.java	20 May 2002 10:12:49 -0000	1.12
  +++ Priority.java	27 Nov 2002 07:54:37 -0000	1.13
  @@ -45,6 +45,11 @@
        */
       public static final Priority FATAL_ERROR = new Priority( "FATAL_ERROR", 25 );
   
  +    /**
  +     * Do not log anything.
  +     */
  +    public static final Priority NONE = new Priority( "NONE", Integer.MAX_VALUE );
  +    
       private final String m_name;
       private final int m_priority;
   
  @@ -66,6 +71,8 @@
               return Priority.ERROR;
           else if( Priority.FATAL_ERROR.getName().equals( priority ) )
               return Priority.FATAL_ERROR;
  +        else if( Priority.NONE.getName().equals( priority ) )
  +            return Priority.NONE;
           else
               return Priority.DEBUG;
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message