cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/logger AbstractLogger.java
Date Thu, 30 Mar 2000 00:36:11 GMT
stefano     00/03/29 16:36:11

  Modified:    src/org/apache/cocoon/logger AbstractLogger.java
  Log:
  got the loglevel backwards, what an idiot...
  
  Revision  Changes    Path
  1.2       +6 -6      xml-cocoon/src/org/apache/cocoon/logger/AbstractLogger.java
  
  Index: AbstractLogger.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/logger/AbstractLogger.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractLogger.java	2000/03/17 16:46:02	1.1
  +++ AbstractLogger.java	2000/03/30 00:36:11	1.2
  @@ -1,4 +1,4 @@
  -/*-- $Id: AbstractLogger.java,v 1.1 2000/03/17 16:46:02 stefano Exp $ --
  +/*-- $Id: AbstractLogger.java,v 1.2 2000/03/30 00:36:11 stefano Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -56,7 +56,7 @@
    * capabilities.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.1 $ $Date: 2000/03/17 16:46:02 $
  + * @version $Revision: 1.2 $ $Date: 2000/03/30 00:36:11 $
    */
   
   public abstract class AbstractLogger implements Logger {
  @@ -72,19 +72,19 @@
       }
   
       public void log(String message, int level) {
  -        if (level >= loglevel) {
  +        if (level <= loglevel) {
               log(message);
           }
       }
   
       public void log(Exception exception, String message, int level) {
  -        if (level >= loglevel) {
  +        if (level <= loglevel) {
               log(exception, message);
           }
       }
   
       public void log(Object originator, String message, int level) {
  -        if (level >= loglevel) {
  +        if (level <= loglevel) {
               StringBuffer b = new StringBuffer();
               b.append("[");
               b.append(originator.getClass().getName());
  @@ -97,7 +97,7 @@
       }
   
       public void log(Object originator, Exception exception, String message, int level)
{
  -        if (level >= loglevel) {
  +        if (level <= loglevel) {
               StringBuffer b = new StringBuffer();
               b.append("[");
               b.append(originator.getClass().getName());
  
  
  

Mime
View raw message