In previous post I’ve described why I’ve started to look into RabbitMQ integration. Here you could find its implementation.
Implementation: Sitecore + RabbitMQ
To send log data from Sitecore we need to extend its Logger. Sitecore uses a logging system based on log4net (it is their implementation and based not on the latest log4net sources) so we could try to use existing open-source module from NuGet at least as a reference.
I took the module, replace the log4net reference with Sitecore.Logging.dll, and made all needed changes. All this code you could find on GitHub in pre-beta version.
How to configure
- Put compiled DLLs to the bin folder.
- Make changes in web.config:
- Run RabbitMQ service
- Check that messages are sent (you need to use any kind of client AMQP)
Now we can use it.