I think you are looking for:
<param name="LogName" value="MyLog" />
More information can be found here . If you do something like this, you can see this problem . This is mainly about registering your application so that the event log knows about it.
Change (configuration by code):
Not tested, but this should have done the trick:
foreach (AppenderSkeleton appender in this.Logger.Repository.GetAppenders()) { var eventlogAppender = appender as EventLogAppender; if (eventlogAppender != null) { eventlogAppender.LogName = "MyLog"; eventlogAppender.ActivateOptions(); break; } }
You can add a few tests to make sure there is only one EventLogAppender, but you probably don't need to.
source share