You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by st...@locus.apache.org on 2000/03/30 02:36:11 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/logger AbstractLogger.java
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());