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.
source
share