cloudfoundry-samples/spring-travel — pull request #1 by pledbrook (2012-03-13 16:49:17+00:00)
Title: Add logging via RabbitMQ to Spring Travel

I've added a servlet context listener that configures Log4j as usual then adds an AMQP appender that logs messages at INFO and above to a RabbitMQ service called "rabbitmq-logs". If the app is not running inside Cloud Foundry, it uses a local RabbitMQ with the usual 'guest' account.

I'd appreciate someone with a more solid Spring/Java background checking this. Too much is currently hard-coded, but I'm not sure what the best approach is for specifying the RabbitMQ connection settings.