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 Sat, 28 Sep 2002 04:15:04 GMT
donaldp     2002/09/27 21:15:04

  Modified:    src/java/org/apache/log Logger.java
  Log:
  Don't use deprecated method
  
  Revision  Changes    Path
  1.30      +12 -8     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.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- Logger.java	28 Sep 2002 04:14:20 -0000	1.29
  +++ Logger.java	28 Sep 2002 04:15:04 -0000	1.30
  @@ -81,7 +81,7 @@
        */
       public final boolean isDebugEnabled()
       {
  -        return getPriority().isLowerOrEqual( Priority.DEBUG );
  +        return m_priority.isLowerOrEqual( Priority.DEBUG );
       }
   
       /**
  @@ -118,7 +118,7 @@
        */
       public final boolean isInfoEnabled()
       {
  -        return getPriority().isLowerOrEqual( Priority.INFO );
  +        return m_priority.isLowerOrEqual( Priority.INFO );
       }
   
       /**
  @@ -154,7 +154,7 @@
        */
       public final boolean isWarnEnabled()
       {
  -        return getPriority().isLowerOrEqual( Priority.WARN );
  +        return m_priority.isLowerOrEqual( Priority.WARN );
       }
   
       /**
  @@ -191,7 +191,7 @@
        */
       public final boolean isErrorEnabled()
       {
  -        return getPriority().isLowerOrEqual( Priority.ERROR );
  +        return m_priority.isLowerOrEqual( Priority.ERROR );
       }
   
       /**
  @@ -228,7 +228,7 @@
        */
       public final boolean isFatalErrorEnabled()
       {
  -        return getPriority().isLowerOrEqual( Priority.FATAL_ERROR );
  +        return m_priority.isLowerOrEqual( Priority.FATAL_ERROR );
       }
   
       /**
  @@ -279,7 +279,7 @@
        */
       public final boolean isPriorityEnabled( final Priority priority )
       {
  -        return getPriority().isLowerOrEqual( priority );
  +        return m_priority.isLowerOrEqual( priority );
       }
   
       /**
  @@ -293,7 +293,7 @@
                              final String message,
                              final Throwable throwable )
       {
  -        if( getPriority().isLowerOrEqual( priority ) )
  +        if( m_priority.isLowerOrEqual( priority ) )
           {
               output( priority, message, throwable );
           }
  @@ -341,9 +341,13 @@
       public synchronized void unsetPriority( final boolean recursive )
       {
           if( null != m_parent )
  -            m_priority = m_parent.getPriority();
  +        {
  +            m_priority = m_parent.m_priority;
  +        }
           else
  +        {
               m_priority = Priority.DEBUG;
  +        }
   
           m_priorityForceSet = false;
           resetChildPriorities( recursive );
  
  
  

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