Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleaup logging after upgrade: use non-deprecated annotations, remove …

…un-used logging methods, re-format
  • Loading branch information...
commit 10d7455d52ed776fdd8874411a7897534eb95edd 1 parent 84e370d
@jbertram jbertram authored
Showing with 107 additions and 166 deletions.
  1. +4 −4 hornetq-bootstrap/src/main/java/org/hornetq/integration/bootstrap/HornetQBootstrapLogger.java
  2. +4 −5 hornetq-commons/src/main/java/org/hornetq/utils/HornetQUtilLogger.java
  3. +40 −46 hornetq-core-client/src/main/java/org/hornetq/core/client/HornetQClientLogger.java
  4. +4 −9 hornetq-jms-client/src/main/java/org/hornetq/jms/client/HornetQJMSClientLogger.java
  5. +4 −5 hornetq-jms-server/src/main/java/org/hornetq/jms/server/HornetQJMSServerLogger.java
  6. +4 −5 hornetq-journal/src/main/java/org/hornetq/journal/HornetQJournalLogger.java
  7. +4 −8 ...tocols/hornetq-stomp-protocol/src/main/java/org/hornetq/core/protocol/stomp/HornetQStompProtocolLogger.java
  8. +4 −12 hornetq-ra/src/main/java/org/hornetq/ra/HornetQRALogger.java
  9. +4 −4 hornetq-rest/src/main/java/org/hornetq/rest/HornetQRestLogger.java
  10. +4 −24 hornetq-server/src/main/java/org/hornetq/core/server/HornetQServerLogger.java
  11. +1 −1  hornetq-service-sar/src/main/java/org/hornetq/service/HornetQServiceLogger.java
  12. +4 −0 hornetq-tools/pom.xml
  13. +4 −6 hornetq-tools/src/main/java/org/hornetq/tools/HornetQToolsLogger.java
  14. +3 −14 ...tion/hornetq-aerogear-integration/src/main/java/org/hornetq/integration/aerogear/HornetQAeroGearLogger.java
  15. +8 −9 integration/hornetq-jboss-as-integration/src/main/java/org/hornetq/integration/jboss/HornetQJBossLogger.java
  16. +1 −2  integration/hornetq-spring-integration/src/main/java/org/hornetq/spring/HornetQSpringLogger.java
  17. +4 −5 integration/hornetq-twitter-integration/src/main/java/org/hornetq/twitter/HornetQTwitterLogger.java
  18. +3 −4 integration/hornetq-vertx-integration/src/main/java/org/hornetq/integration/vertx/HornetQVertxLogger.java
  19. +1 −1  tests/integration-tests/src/test/java/org/hornetq/tests/integration/IntegrationTestLogger.java
  20. +1 −1  tests/jms-tests/src/test/java/org/hornetq/jms/tests/JmsTestLogger.java
  21. +1 −1  tests/unit-tests/src/test/java/org/hornetq/tests/unit/UnitTestLogger.java
View
8 ...etq-bootstrap/src/main/java/org/hornetq/integration/bootstrap/HornetQBootstrapLogger.java
@@ -14,11 +14,11 @@
package org.hornetq.integration.bootstrap;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
View
9 hornetq-commons/src/main/java/org/hornetq/utils/HornetQUtilLogger.java
@@ -10,14 +10,13 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.utils;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
@@ -46,6 +45,6 @@
@LogMessage(level = Logger.Level.WARN)
@Message(id = 202000, value = "Missing privileges to set Thread Context Class Loader on Thread Factory. Using current Thread Context Class Loader",
- format = Message.Format.MESSAGE_FORMAT)
+ format = Message.Format.MESSAGE_FORMAT)
void missingPrivsForClassloader();
}
View
86 hornetq-core-client/src/main/java/org/hornetq/core/client/HornetQClientLogger.java
@@ -10,18 +10,17 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.core.client;
import org.hornetq.api.core.HornetQExceptionType;
import org.hornetq.api.core.Interceptor;
import org.hornetq.core.protocol.core.Packet;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
import org.w3c.dom.Node;
/**
@@ -42,6 +41,7 @@
* <p>
* Once released, methods should not be deleted as they may be referenced by knowledge base
* articles. Unused methods should be marked as deprecated.
+ *
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
*/
@MessageLogger(projectCode = "HQ")
@@ -89,18 +89,16 @@
void waitingForRetry(Long interval, Long retryInterval, Double multiplier);
@LogMessage(level = Logger.Level.WARN)
- @Message(
- id = 212007,
- value = "connector.create or connectorFactory.createConnector should never throw an exception, implementation is badly behaved, but we will deal with it anyway."
- , format = Message.Format.MESSAGE_FORMAT)
+ @Message(id = 212007,
+ value = "connector.create or connectorFactory.createConnector should never throw an exception, implementation is badly behaved, but we will deal with it anyway.",
+ format = Message.Format.MESSAGE_FORMAT)
void createConnectorException(@Cause Exception e);
@LogMessage(level = Logger.Level.WARN)
- @Message(
- id = 212008,
+ @Message(id = 212008,
value = "I am closing a core ClientSessionFactory you left open. Please make sure you close all ClientSessionFactories explicitly "
- + "before letting them go out of scope! {0}"
- , format = Message.Format.MESSAGE_FORMAT)
+ + "before letting them go out of scope! {0}",
+ format = Message.Format.MESSAGE_FORMAT)
void factoryLeftOpen(@Cause Exception e, int i);
@LogMessage(level = Logger.Level.WARN)
@@ -120,10 +118,6 @@
void failoverDuringCommit();
@LogMessage(level = Logger.Level.WARN)
- @Message(id = 212013, value = "failover occurred during prepare re-trying", format = Message.Format.MESSAGE_FORMAT)
- void failoverDuringPrepare();
-
- @LogMessage(level = Logger.Level.WARN)
@Message(id = 212014, value = "failover occurred during prepare rolling back", format = Message.Format.MESSAGE_FORMAT)
void failoverDuringPrepareRollingBack();
@@ -132,8 +126,7 @@
void errorDuringPrepare(@Cause Exception e);
@LogMessage(level = Logger.Level.WARN)
- @Message(
- id = 212016,
+ @Message(id = 212016,
value = "I am closing a core ClientSession you left open. Please make sure you close all ClientSessions explicitly before letting them go out of scope! {0}",
format = Message.Format.MESSAGE_FORMAT)
void clientSessionNotClosed(@Cause Exception e, int identity);
@@ -187,8 +180,7 @@
void errorStartingLocator(@Cause Exception e);
@LogMessage(level = Logger.Level.WARN)
- @Message(
- id = 212029,
+ @Message(id = 212029,
value = "Closing a Server Locator left open. Please make sure you close all Server Locators explicitly before letting them go out of scope! {0}",
format = Message.Format.MESSAGE_FORMAT)
void serverLocatorNotClosed(@Cause Exception e, int identity);
@@ -210,12 +202,13 @@
void errorSendingNotifOnDiscoveryStop(@Cause Throwable e);
@LogMessage(level = Logger.Level.WARN)
- @Message(id = 212034, value = "There are more than one servers on the network broadcasting the same node id. "
- + "You will see this message exactly once (per node) if a node is restarted, in which case it can be safely "
- + "ignored. But if it is logged continuously it means you really do have more than one node on the same network "
- + "active concurrently with the same node id. This could occur if you have a backup node active at the same time as "
- + "its live node. nodeID={0}",
- format = Message.Format.MESSAGE_FORMAT)
+ @Message(id = 212034,
+ value = "There are more than one servers on the network broadcasting the same node id. "
+ + "You will see this message exactly once (per node) if a node is restarted, in which case it can be safely "
+ + "ignored. But if it is logged continuously it means you really do have more than one node on the same network "
+ + "active concurrently with the same node id. This could occur if you have a backup node active at the same time as "
+ + "its live node. nodeID={0}",
+ format = Message.Format.MESSAGE_FORMAT)
void multipleServersBroadcastingSameNode(String nodeId);
@LogMessage(level = Logger.Level.WARN)
@@ -225,7 +218,7 @@
@LogMessage(level = Logger.Level.WARN)
@Message(id = 212036,
value = "Can not find packet to clear: {0} last received command id first stored command id {1}",
- format = Message.Format.MESSAGE_FORMAT)
+ format = Message.Format.MESSAGE_FORMAT)
void cannotFindPacketToClear(Integer lastReceivedCommandID, Integer firstStoredCommandID);
@LogMessage(level = Logger.Level.WARN)
@@ -271,48 +264,49 @@
@LogMessage(level = Logger.Level.WARN)
@Message(id = 212048, value = "local-bind-address specified for broadcast group but no local-bind-port specified so socket will NOT be bound to a local address/port",
- format = Message.Format.MESSAGE_FORMAT)
+ format = Message.Format.MESSAGE_FORMAT)
void broadcastGroupBindError();
@LogMessage(level = Logger.Level.WARN)
- @Message(id = 212049, value = "Could not bind to {0} ({1} address); " +
- "make sure your discovery group-address is of the same type as the IP stack (IPv4 or IPv6)." +
- "\nIgnoring discovery group-address, but this may lead to cross talking.",
- format = Message.Format.MESSAGE_FORMAT)
+ @Message(id = 212049,
+ value = "Could not bind to {0} ({1} address); " +
+ "make sure your discovery group-address is of the same type as the IP stack (IPv4 or IPv6)." +
+ "\nIgnoring discovery group-address, but this may lead to cross talking.",
+ format = Message.Format.MESSAGE_FORMAT)
void ioDiscoveryError(String hostAddress, String s);
@LogMessage(level = Logger.Level.WARN)
@Message(id = 212050, value = "Compressed large message tried to read {0} bytes from stream {1}",
- format = Message.Format.MESSAGE_FORMAT)
+ format = Message.Format.MESSAGE_FORMAT)
void compressedLargeMessageError(int length, int nReadBytes);
@LogMessage(level = Logger.Level.WARN)
@Message(id = 212051,
- value = "Invalid concurrent session usage. Sessions are not supposed to be used by more than one thread concurrently.",
- format = Message.Format.MESSAGE_FORMAT)
+ value = "Invalid concurrent session usage. Sessions are not supposed to be used by more than one thread concurrently.",
+ format = Message.Format.MESSAGE_FORMAT)
void invalidConcurrentSessionUsage(@Cause Throwable t);
@LogMessage(level = Logger.Level.WARN)
@Message(id = 212052,
- value = "Packet {0} was answered out of sequence due to a previous server timeout and it''s being ignored",
- format = Message.Format.MESSAGE_FORMAT)
+ value = "Packet {0} was answered out of sequence due to a previous server timeout and it''s being ignored",
+ format = Message.Format.MESSAGE_FORMAT)
void packetOutOfOrder(Object obj, @Cause Throwable t);
/**
- * Warns about usage of {@link SendAcknowledgementHandler} or JMS's {@code CompletionWindow} with
+ * Warns about usage of {@link org.hornetq.api.core.client.SendAcknowledgementHandler} or JMS's {@code CompletionWindow} with
* confirmations disabled (confirmationWindowSize=-1).
*/
@LogMessage(level = Logger.Level.WARN)
@Message(id = 212053,
- value = "CompletionListener/SendAcknowledgementHandler used with confirmationWindowSize=-1. Enable confirmationWindowSize to receive acks from server!",
- format = Message.Format.MESSAGE_FORMAT)
+ value = "CompletionListener/SendAcknowledgementHandler used with confirmationWindowSize=-1. Enable confirmationWindowSize to receive acks from server!",
+ format = Message.Format.MESSAGE_FORMAT)
void confirmationWindowDisabledWarning();
@LogMessage(level = Logger.Level.WARN)
@Message(id = 212054,
- value = "Destination address={0} is blocked. If the system is configured to block make sure you consume messages on this configuration.",
- format = Message.Format.MESSAGE_FORMAT)
+ value = "Destination address={0} is blocked. If the system is configured to block make sure you consume messages on this configuration.",
+ format = Message.Format.MESSAGE_FORMAT)
void outOfCreditOnFlowControl(String address);
@LogMessage(level = Logger.Level.WARN)
@@ -388,15 +382,15 @@
void errorCreatingNettyConnection(@Cause Throwable e);
@LogMessage(level = Logger.Level.ERROR)
- @Message(id = 214017, value = "Caught unexpected Throwable", format = Message.Format.MESSAGE_FORMAT)
+ @Message(id = 214017, value = "Caught unexpected Throwable", format = Message.Format.MESSAGE_FORMAT)
void caughtunexpectedThrowable(@Cause Throwable t);
@LogMessage(level = Logger.Level.ERROR)
- @Message(id = 214018, value = "Failed to invoke getTextContent() on node {0}", format = Message.Format.MESSAGE_FORMAT)
+ @Message(id = 214018, value = "Failed to invoke getTextContent() on node {0}", format = Message.Format.MESSAGE_FORMAT)
void errorOnXMLTransform(@Cause Throwable t, Node n);
@LogMessage(level = Logger.Level.ERROR)
- @Message(id = 214019, value = "Invalid configuration", format = Message.Format.MESSAGE_FORMAT)
+ @Message(id = 214019, value = "Invalid configuration", format = Message.Format.MESSAGE_FORMAT)
void errorOnXMLTransformInvalidConf(@Cause Throwable t);
@LogMessage(level = Logger.Level.ERROR)
View
13 hornetq-jms-client/src/main/java/org/hornetq/jms/client/HornetQJMSClientLogger.java
@@ -10,15 +10,14 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.jms.client;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
@@ -58,10 +57,6 @@
void errorCallingExcListener(@Cause Exception e);
@LogMessage(level = Logger.Level.ERROR)
- @Message(id = 124001, value = "Consumer Failed to prepare message for delivery", format = Message.Format.MESSAGE_FORMAT)
- void errorPreparingMessage(@Cause Throwable e);
-
- @LogMessage(level = Logger.Level.ERROR)
@Message(id = 124002, value = "Queue Browser failed to create message" , format = Message.Format.MESSAGE_FORMAT)
void errorCreatingMessage(@Cause Throwable e);
View
9 hornetq-jms-server/src/main/java/org/hornetq/jms/server/HornetQJMSServerLogger.java
@@ -10,7 +10,6 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.jms.server;
import javax.management.ObjectName;
@@ -18,11 +17,11 @@
import org.hornetq.api.core.client.ClientSessionFactory;
import org.hornetq.jms.server.recovery.XARecoveryConfig;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
import org.w3c.dom.Node;
/**
View
9 hornetq-journal/src/main/java/org/hornetq/journal/HornetQJournalLogger.java
@@ -10,16 +10,15 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.journal;
import org.hornetq.core.journal.impl.JournalFile;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
View
12 ...mp-protocol/src/main/java/org/hornetq/core/protocol/stomp/HornetQStompProtocolLogger.java
@@ -12,12 +12,11 @@
*/
package org.hornetq.core.protocol.stomp;
-
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
@@ -45,13 +44,10 @@
*/
HornetQStompProtocolLogger LOGGER = Logger.getMessageLogger(HornetQStompProtocolLogger.class, HornetQStompProtocolLogger.class.getPackage().getName());
-
@LogMessage(level = Logger.Level.WARN)
@Message(id = 222068, value = "connection closed {0}", format = Message.Format.MESSAGE_FORMAT)
void connectionClosed(StompConnection connection);
-
-
@LogMessage(level = Logger.Level.ERROR)
@Message(id = 224023, value = "Unable to send frame {0}", format = Message.Format.MESSAGE_FORMAT)
void errorSendingFrame(@Cause Exception e, StompFrame frame);
View
16 hornetq-ra/src/main/java/org/hornetq/ra/HornetQRALogger.java
@@ -15,11 +15,11 @@
import org.hornetq.ra.inflow.HornetQActivationSpec;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* Logger Code 15
@@ -100,10 +100,6 @@
@Message(id = 152006, value = "Unable to call after delivery", format = Message.Format.MESSAGE_FORMAT)
void unableToCallAfterDelivery(@Cause Exception e);
- @LogMessage(level = Logger.Level.WARN)
- @Message(id = 152007, value = "unable to clear the transaction", format = Message.Format.MESSAGE_FORMAT)
- void unableToClearTX(@Cause Exception e);
-
@LogMessage(level = Logger.Level.ERROR)
@Message(id = 154000, value = "Error while creating object Reference.", format = Message.Format.MESSAGE_FORMAT)
void errorCreatingReference(@Cause Exception e);
@@ -113,10 +109,6 @@
void errorStoppingRA(@Cause Exception e);
@LogMessage(level = Logger.Level.ERROR)
- @Message(id = 154002, value = "Could not create session", format = Message.Format.MESSAGE_FORMAT)
- void errorCreatingSession(@Cause Exception e);
-
- @LogMessage(level = Logger.Level.ERROR)
@Message(id = 154003, value = "Unable to reconnect {0}", format = Message.Format.MESSAGE_FORMAT)
void errorReconnecting(@Cause Throwable t, HornetQActivationSpec spec);
View
8 hornetq-rest/src/main/java/org/hornetq/rest/HornetQRestLogger.java
@@ -16,11 +16,11 @@
import org.hornetq.api.core.HornetQException;
import org.hornetq.rest.queue.push.xml.XmlLink;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
View
28 hornetq-server/src/main/java/org/hornetq/core/server/HornetQServerLogger.java
@@ -60,11 +60,11 @@
import org.hornetq.core.server.impl.ServerSessionImpl;
import org.hornetq.utils.FutureLatch;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
import org.w3c.dom.Node;
@MessageLogger(projectCode = "HQ")
@@ -268,10 +268,6 @@
void addingProtocolSupport(String protocolKey);
@LogMessage(level = Logger.Level.INFO)
- @Message(id = 221044, value = "Backup Server has recovered journal to live server, restarting as backup", format = Message.Format.MESSAGE_FORMAT)
- void backupServerRecovered();
-
- @LogMessage(level = Logger.Level.INFO)
@Message(id = 221045, value = "libaio is not available, switching the configuration into NIO", format = Message.Format.MESSAGE_FORMAT)
void switchingNIO();
@@ -584,10 +580,6 @@
void timedOutFlushingInvmChannel();
@LogMessage(level = Logger.Level.WARN)
- @Message(id = 222073, value = "Unexpected Netty Version was expecting {0} using {1} Version.ID", format = Message.Format.MESSAGE_FORMAT)
- void unexpectedNettyVersion(String nettyVersion, String id);
-
- @LogMessage(level = Logger.Level.WARN)
@Message(id = 212074, value = "channel group did not completely close", format = Message.Format.MESSAGE_FORMAT)
void nettyChannelGroupError();
@@ -876,10 +868,6 @@
void remoteQueueAlreadyBoundOnClusterConnection(Object messageFlowRecord, SimpleString clusterName);
@LogMessage(level = Logger.Level.WARN)
- @Message(id = 222140, value = "problem closing backup session factory for cluster connection", format = Message.Format.MESSAGE_FORMAT)
- void errorClosingBackupFactoryOnClusterConnection(@Cause Exception e);
-
- @LogMessage(level = Logger.Level.WARN)
@Message(id = 222141, value = "Node Manager can not open file {0}", format = Message.Format.MESSAGE_FORMAT)
void nodeManagerCantOpenFile(@Cause Exception e, File file);
@@ -1090,10 +1078,6 @@
void errorUnDeployingURI(@Cause Throwable e, URI a);
@LogMessage(level = Logger.Level.ERROR)
- @Message(id = 224004, value = "key attribute missing for configuration {0}", format = Message.Format.MESSAGE_FORMAT)
- void keyAttributeMissing(Node node);
-
- @LogMessage(level = Logger.Level.ERROR)
@Message(id = 224005, value = "Unable to deploy node {0}", format = Message.Format.MESSAGE_FORMAT)
void unableToDeployNode(@Cause Exception e, Node node);
@@ -1170,10 +1154,6 @@
void stompErrorTXExists(String txID);
@LogMessage(level = Logger.Level.ERROR)
- @Message(id = 224026, value = "Cannot create stomp ping frame due to encoding problem.", format = Message.Format.MESSAGE_FORMAT)
- void errorOnStompPingFrame(@Cause Exception e);
-
- @LogMessage(level = Logger.Level.ERROR)
@Message(id = 224027, value = "Failed to write to handler on invm connector {0}", format = Message.Format.MESSAGE_FORMAT)
void errorWritingToInvmConnector(@Cause Exception e, Runnable runnable);
View
2  hornetq-service-sar/src/main/java/org/hornetq/service/HornetQServiceLogger.java
@@ -13,7 +13,7 @@
package org.hornetq.service;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
View
4 hornetq-tools/pom.xml
@@ -18,6 +18,10 @@
<artifactId>jboss-logging</artifactId>
</dependency>
<dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-processor</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-server</artifactId>
<version>${project.version}</version>
View
10 hornetq-tools/src/main/java/org/hornetq/tools/HornetQToolsLogger.java
@@ -10,9 +10,12 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.tools;
+import org.jboss.logging.BasicLogger;
+import org.jboss.logging.Logger;
+import org.jboss.logging.annotations.MessageLogger;
+
/**
* @author Justin Bertram
*
@@ -29,11 +32,6 @@
*
* so an INFO message would be 241000 to 241999
*/
-
-import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Logger;
-import org.jboss.logging.MessageLogger;
-
@MessageLogger(projectCode = "HQ")
public interface HornetQToolsLogger extends BasicLogger
{
View
17 ...ear-integration/src/main/java/org/hornetq/integration/aerogear/HornetQAeroGearLogger.java
@@ -13,11 +13,10 @@
package org.hornetq.integration.aerogear;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* Logger Code 23
@@ -41,20 +40,11 @@
*/
HornetQAeroGearLogger LOGGER = Logger.getMessageLogger(HornetQAeroGearLogger.class, HornetQAeroGearLogger.class.getPackage().getName());
-
@LogMessage(level = Logger.Level.INFO)
@Message(id = 231001, value = "aerogear connector connected to {0}", format = Message.Format.MESSAGE_FORMAT)
void connected(String endpoint);
@LogMessage(level = Logger.Level.WARN)
- @Message(id = 232001, value = "failed to ack message {0}", format = Message.Format.MESSAGE_FORMAT)
- void errorAcking(long id, @Cause Exception cause);
-
- @LogMessage(level = Logger.Level.WARN)
- @Message(id = 232002, value = "failed to cancel message {0}", format = Message.Format.MESSAGE_FORMAT)
- void unableToCancelDelivery(long messageID,@Cause Exception cause);
-
- @LogMessage(level = Logger.Level.WARN)
@Message(id = 232003, value = "removing aerogear connector as credentials are invalid", format = Message.Format.MESSAGE_FORMAT)
void reply401();
@@ -70,7 +60,6 @@
@Message(id = 232006, value = "unable to connect to aerogear server, retrying in {0} seconds", format = Message.Format.MESSAGE_FORMAT)
void sendFailed(int retry);
-
@LogMessage(level = Logger.Level.WARN)
@Message(id = 232007, value = "removing aerogear connector unable to connect after {0} attempts, giving up", format = Message.Format.MESSAGE_FORMAT)
void unableToReconnect(int retryAttempt);
View
17 ...-jboss-as-integration/src/main/java/org/hornetq/integration/jboss/HornetQJBossLogger.java
@@ -10,17 +10,16 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.integration.jboss;
+import javax.security.auth.Subject;
+
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
-
-import javax.security.auth.Subject;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
@@ -49,11 +48,11 @@
@LogMessage(level = Logger.Level.INFO)
@Message(id = 131001, value = "Security Context Setting Subject = {0}",
- format = Message.Format.MESSAGE_FORMAT)
+ format = Message.Format.MESSAGE_FORMAT)
void settingSecuritySubject(Subject subject);
@LogMessage(level = Logger.Level.WARN)
@Message(id = 132001, value = "An error happened while setting the context",
- format = Message.Format.MESSAGE_FORMAT)
+ format = Message.Format.MESSAGE_FORMAT)
void errorSettingSecurityContext(@Cause Throwable Throwable);
}
View
3  ...tion/hornetq-spring-integration/src/main/java/org/hornetq/spring/HornetQSpringLogger.java
@@ -10,10 +10,9 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.spring;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
View
9 ...n/hornetq-twitter-integration/src/main/java/org/hornetq/twitter/HornetQTwitterLogger.java
@@ -10,15 +10,14 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
-
package org.hornetq.twitter;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.Cause;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.Cause;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
View
7 ...etq-vertx-integration/src/main/java/org/hornetq/integration/vertx/HornetQVertxLogger.java
@@ -14,10 +14,10 @@
import org.hornetq.core.server.ServerMessage;
import org.jboss.logging.BasicLogger;
-import org.jboss.logging.LogMessage;
import org.jboss.logging.Logger;
-import org.jboss.logging.Message;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.LogMessage;
+import org.jboss.logging.annotations.Message;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:hgao@redhat.com">Howard Gao</a>
@@ -50,5 +50,4 @@
@LogMessage(level = Logger.Level.WARN)
@Message(id = 192002, value = "Invalid vertx type: {0}", format = Message.Format.MESSAGE_FORMAT)
void invalidVertxType(Integer type);
-
}
View
2  .../integration-tests/src/test/java/org/hornetq/tests/integration/IntegrationTestLogger.java
@@ -15,7 +15,7 @@
import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
View
2  tests/jms-tests/src/test/java/org/hornetq/jms/tests/JmsTestLogger.java
@@ -14,7 +14,7 @@
import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
View
2  tests/unit-tests/src/test/java/org/hornetq/tests/unit/UnitTestLogger.java
@@ -14,7 +14,7 @@
import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
-import org.jboss.logging.MessageLogger;
+import org.jboss.logging.annotations.MessageLogger;
/**
* @author <a href="mailto:andy.taylor@jboss.org">Andy Taylor</a>
Please sign in to comment.
Something went wrong with that request. Please try again.