You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ca...@apache.org on 2006/01/24 17:58:45 UTC
svn commit: r371954 -
/logging/log4j/trunk/src/java/org/apache/log4j/net/JMSAppender.java
Author: carnold
Date: Tue Jan 24 08:58:42 2006
New Revision: 371954
URL: http://svn.apache.org/viewcvs?rev=371954&view=rev
Log:
Bug 35452: Restore o.a.l.net.JMSAppender.checkEntryConditions
Modified:
logging/log4j/trunk/src/java/org/apache/log4j/net/JMSAppender.java
Modified: logging/log4j/trunk/src/java/org/apache/log4j/net/JMSAppender.java
URL: http://svn.apache.org/viewcvs/logging/log4j/trunk/src/java/org/apache/log4j/net/JMSAppender.java?rev=371954&r1=371953&r2=371954&view=diff
==============================================================================
--- logging/log4j/trunk/src/java/org/apache/log4j/net/JMSAppender.java (original)
+++ logging/log4j/trunk/src/java/org/apache/log4j/net/JMSAppender.java Tue Jan 24 08:58:42 2006
@@ -1,5 +1,5 @@
/*
- * Copyright 1999,2005 The Apache Software Foundation.
+ * Copyright 1999,2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -279,11 +279,20 @@
topicConnection = null;
}
+ /**
+ * Gets whether appender is properly configured to append messages.
+ * @return true if properly configured.
+ */
+ protected boolean checkEntryConditions() {
+ return inOrder;
+ }
+
+
/**
This method called by {@link AppenderSkeleton#doAppend} method to
do most of the real appending work. */
public void append(LoggingEvent event) {
- if (!inOrder) {
+ if (!checkEntryConditions()) {
return;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org