title: How to add remotingappender programmatically in log4net
body: <p>When I have following xml configuration to configure log4net for remotingappender, it all works.</p>
  
  <pre><code>&lt;log4net&gt;
    &lt;appender name="RemotingAppender" type="log4net.Appender.RemotingAppender" &gt;
      &lt;sink value="tcp://localhost:8085/LoggingSink" /&gt;
      &lt;lossy value="false" /&gt;
      &lt;bufferSize value="1" /&gt;
      &lt;onlyFixPartialEventData value="true" /&gt;
    &lt;/appender&gt;
    &lt;root&gt;
      &lt;level value="ALL" /&gt;
      &lt;appender-ref ref="RemotingAppender" /&gt;
    &lt;/root&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <p>I want to do the same thing in code. I searched a littlebit and find an example like the following. But i could not get it working. <br></p>
  
  <pre><code>        ILog log = log4net.LogManager.GetLogger("logName");
          Repository.Hierarchy.Logger l = (Repository.Hierarchy.Logger)log.Logger;
  
          // set level
          l.Level = l.Hierarchy.LevelMap["ALL"];
          // create appander
          Appender.RemotingAppender remotingAppender = new Appender.RemotingAppender();
          remotingAppender.Name = "custom";
          remotingAppender.Sink = "tcp://localhost:8085/LoggingSink";
          remotingAppender.Lossy = false;
          remotingAppender.BufferSize = 1;
          //remotingAppender.Fix = log4net.Core.FixFlags.All;
          // create pattern
          log4net.Layout.PatternLayout layout = new log4net.Layout.PatternLayout();
          layout.ConversionPattern = "%d [%thread] %-5p %c [%a] - %m [%line] [%M]%n";
          layout.ActivateOptions();
  
          remotingAppender.Layout = layout;
          remotingAppender.ActivateOptions();
  
          // add appender
          l.AddAppender(remotingAppender);
          // perform logging (doesnt work)
          log.Warn("my warning");
          log.Error("my error");
  </code></pre>
  
  <p>What is the missing side in my code?<br></p>