Write your own log4net appender that writes to a EL logger. It's an adapter pattern.
inherit a new/custom appender class from log4net.Appender.AppenderSkeleton
override the Append event handler from the skeleton class, and in it
show the RenderedMessage, something like this:
using System;
using log4net;
using System.Windows.Forms;
namespace MyAppender
{
public class CustomAppender : log4net.Appender.AppenderSkeleton
{
protected override void Append(log4net.spi.LoggingEvent log)
{
// log to EL logger based on log properties.
}
}
}
you then need to configure log4net config file....
<root>
<level value="DEBUG" />
<appender-ref ref="MyAppender" />
</root>
</log4net>
I have not tested this, but it should get you going.