You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-cvs@jakarta.apache.org by ce...@apache.org on 2001/01/12 02:29:20 UTC
cvs commit: jakarta-log4j/org/apache/log4j/nt NTEventLogAppender.java
ceki 01/01/11 17:29:20
Modified: org/apache/log4j/nt NTEventLogAppender.java
Log:
Corrected problem due to the wrong direction of comparisons in the appender
method of NTEventLogAppender.
jvendetti@brightstreet.com (Jennifer) reported the bug.
Revision Changes Path
1.5 +3 -1 jakarta-log4j/org/apache/log4j/nt/NTEventLogAppender.java
Index: NTEventLogAppender.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/org/apache/log4j/nt/NTEventLogAppender.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- NTEventLogAppender.java 2000/12/21 00:30:31 1.4
+++ NTEventLogAppender.java 2001/01/12 01:29:19 1.5
@@ -91,7 +91,9 @@
// Normalize the log message priority into the supported categories
int nt_category = event.priority.toInt();
- if (nt_category < FATAL || nt_category > DEBUG) {
+
+ // Anything above FATAL or below DEBUG is labeled as INFO.
+ if (nt_category > FATAL || nt_category < DEBUG) {
nt_category = INFO;
}
reportEvent(_handle, sw_writer.toString(), nt_category);