I would like to use log4net UdpAppender with Apache Chainsaw to log messages from my ASP.NET web application. I followed the instructions on the log4net website, but Udp packets were not sent (the firewall was disabled and I tried to control my machine using TcpView - no udp packets were created at all, other applications were added again). Debugging Log4net does not give any errors, UdpAppender is added to the registrars. I donβt know what is missing.
My configuration file:
<log4net debug="true"> <renderer renderingClass="Logging.HttpContextRenderer" renderedClass="System.Web.HttpContext" /> <appender name="UdpAppender" type="log4net.Appender.UdpAppender"> <localPort value="8080" /> <remoteAddress value="127.0.0.1" /> <remotePort value="8080" /> <layout type="log4net.Layout.XmlLayoutSchemaLog4j"> <locationInfo value="true" /> </layout> </appender> <root> <priority value="ALL"/> <appender-ref ref="UdpAppender"/> </root> </log4net>
source share