avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-logkit/src/java/org/apache/log Logger.java
Date Tue, 11 Dec 2001 10:51:27 GMT
donaldp     01/12/11 02:51:27

  Modified:    src/java/org/apache/log Logger.java
  Log:
  Added isPriorityEnabled() method to determine if specified priority is enabled.
  
  Submitted By: david.gray@hic.gov.au
  
  Revision  Changes    Path
  1.19      +10 -0     jakarta-avalon-logkit/src/java/org/apache/log/Logger.java
  
  Index: Logger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/Logger.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Logger.java	2001/11/19 12:18:33	1.18
  +++ Logger.java	2001/12/11 10:51:27	1.19
  @@ -273,6 +273,16 @@
       }
   
       /**
  +     * Determine if messages of priority  will be logged.
  +     *
  +     * @return true if messages will be logged
  +     */
  +    public final boolean isPriorityEnabled( final Priority priority )
  +    {
  +        return getPriority().isLowerOrEqual( priority );
  +    }
  +    
  +    /**
        * Log a event at specific priority with a certain message and throwable.
        *
        * @param message the message
  
  
  

--
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