title: app.net c# log4net, windows event viewer
body: <p>I am logging information into the windows event viewer.</p>
  
  <p>This is what I have in my log4net config file.</p>
  
  <pre class="lang-xml prettyprint-override"><code>  &lt;logger name="MyLogger"&gt;
      &lt;level value="all"/&gt;
      &lt;appender-ref ref="EventLogAppender"/&gt;
    &lt;/logger&gt;
  
        &lt;!-- Windows Event Viewer appender --&gt;
        &lt;appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" &gt;
          &lt;layout type="log4net.Layout.PatternLayout"&gt;
            &lt;conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" /&gt;
          &lt;/layout&gt;
        &lt;/appender&gt;
  </code></pre>
  
  <p>I'm seeing a new information event every time I'm logging with that logger in my application and I see that in Windows Event Viewer -> Windows Logs -> Application.</p>
  
  <p>Is there a way to log in a specific journal or one that I create from my application?<br>
  Like instead of <code>Application</code>, it would be <code>MyWebApplication</code>.</p>
  
  <p>Also, I have 2 web applications running at the same time. They both have their log4net config file with different loggers. It doesn't seem to work when I try to log events from the 2 web applications. (I set them different applicationName... <code>&lt;applicationName value="app1" /&gt; &lt;applicationName value="app2" /&gt;</code>). It will always log with the first one name even if it's 2 different config file and 2 different applicationName.</p>