Refactors amqp logger