title: Set log name in appender of log4net
body: <p>I have class MyLogger, where I use log4net. How can I modify my appender to save log in specific logname (I want to set it by parameter logName).</p>
  
  <pre><code>public void AddEntry(string source, string logName, string contextInfo, string message, EventLogEntryType eventType)
          {
  
               log4net.ILog Log = log4net.LogManager.GetLogger(source);
  
               Log.Error(String.Format("Context Info: {0}{1}{2}{3}", contextInfo, Environment.NewLine, Environment.NewLine, message));
  
          }
  
  &lt;log4net&gt;
    &lt;root&gt;
      &lt;priority value="ALL" /&gt;
       &lt;appender-ref ref="EventLogAppender" /&gt;
    &lt;/root&gt;
  </code></pre>
  
  <p>This is myAppender. Now it writes in common logtype Application.</p>
  
  <pre><code>  &lt;appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" &gt;
  
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%logger (%property{myContext}) [%level]- %message%newline" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  &lt;/log4net&gt;
  </code></pre>