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

I am running RabbitMQ on Windows 7 (currently for debugging). I want to see messages on an open console every time I send a message. Is there a way to split logs into an open console? 10x

+3
source share
2 answers

Create a logger application that connects to rabbitMQ, creates a queue that consumes all messages sent from the broker, this works best with forked exchanges or topic exchanges where you can set the routing key in # (i.e. for everything). As you consume each message, you can print it on the console or in the journal. This will be separate from your applications, and you can easily turn it on or off when you want. It should not slow down a noticeable current system by adding one extra queue.

+3
source

You can do this, the programming language that you use to publish and use messages from RabbitMQ.

+1
source

Source: https://habr.com/ru/post/1765291/


All Articles