Riz
Riz

Reputation: 1065

ActiveMQ Artemis divert logging

Is there a way to log active mq Artemis diverts? So you can see which divert was applied to a given message? I can't seem to find this in the docs.

Upvotes: 1

Views: 466

Answers (2)

Justin Bertram
Justin Bertram

Reputation: 35122

You can activate TRACE logging for org.apache.activemq.artemis.core.server.impl.DivertImpl. This will log a message for each diverted message. See the logging code here.

Upvotes: 2

Black.Jack
Black.Jack

Reputation: 1957

An option could be found here in docs:

Diverts can also be configured to apply a Transformer. If specified, all diverted messages will have the opportunity of being transformed by the Transformer.

Since Transformer is a class you could implement and trace with a Logger implementation, just without touching the message.

Upvotes: 1

Related Questions