Rabbitmq Logger

RabbitMqLoggerExtension for logging errors/exceptions into rabbitmq exange. You should use this extension on all projects where you want to log error messages to rabbitmq.

ConsumerExtension for getting messages from queue and optionally save them into database using doctrine 2. It also provide grid to show the saved messages. You should use this extension with an internal application to manage saved messages.

Setup

You have to create exchange for RabbitMqLoggerExtension and queue for ConsumerExtension.
If you want to use ConsumerExtension to save messages to database, you also have to create the schema and table.

If you have installed Kdyby/Console, you can use rabbitmq:setup-fabric command from Kdyby/RabbitMq extension to setup exchange and queue:

While rabbitmqLoggerConsumer:save takes messages from queue described in configuration,
rabbitmqLoggerConsumer:list require queue name as argument to avoid accidentally removing message from queue.
You can use rabbitmqLoggerConsumer:queue to create new queue.