I'm trying to use the log4net RabbitMQAppender in a C# web application. I couldn't build and run the samples under https://github.com/haf/log4net.RabbitMQ. In the log4net.config file I couldn't figure out how do I need to set the connection parameters to RabbitMQ (host, port, ssl settings, etc.)
<log4net>
<appender name="AmqpAppender" type="log4net.RabbitMQ.RabbitMQAppender, log4net.RabbitMQ">
<topic value="samples.web.{0}" />
<appId value="Sample Web App for RabbitMQAppender" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level - %message%newline" />
</layout>
</appender>
<root>
<level value="DEBUG"/>
<appender-ref ref="AmqpAppender" />
</root>
</log4net>
Does anybody have any experience with that library. A simple web app sample would be of great help.
Looking at the documentation on the page https://github.com/haf/log4net.RabbitMQ
It seems that you put the connection information under the appender properties for example