Bick
Bick

Reputation: 18521

RabbitMQ Question - Is there a way to print log message to console?

I am running RabbitMQ on windows 7 ( currently for debug reasons). I want to see the messages on the open console each time I send a message. Is there a way to rout the logs to the open console? 10x

Upvotes: 4

Views: 1701

Answers (2)

robthewolf
robthewolf

Reputation: 7624

Create a logger application that connects to rabbitMQ creates a queue that consumes all messages sent from the broker, this works best with a fanout exchange or a topic exchange where you can set the routing key to be # (ie for everything). As you consume each message you can print it to the console or to a log. This will be separate from your apps and you can easily turn it of or on when ever you want. It should not slow down noticably the current system by adding a single extra queue.

Upvotes: 4

sheki
sheki

Reputation: 9359

You can do it in, the programming language you are using to Publish and consume messages from RabbitMQ.

Upvotes: 2

Related Questions