title: Add multiple log4net appenders
body: <p>I'm currently trying to add a Microsoft Teaqms appender to my log4net file. In this file I already have different appenders. My current try looks like this:</p>
  <pre><code>&lt;log4net debug=&quot;true&quot;&gt;
      &lt;root&gt;
          &lt;level value=&quot;WARN&quot; /&gt;
          &lt;appender-ref ref=&quot;AdoNetAppender&quot; /&gt;
          &lt;appender-ref ref=&quot;myMicrosoftTeamsAppender&quot; /&gt;
      &lt;/root&gt;
      &lt;logger name=&quot;ErpLogger&quot; additivity=&quot;false&quot;&gt;
          &lt;level value=&quot;INFO&quot;/&gt;
          &lt;appender-ref ref=&quot;AdoNetAppender&quot;/&gt;
      &lt;/logger&gt;
      &lt;logger name=&quot;ChangeHistoryLogger&quot; additivity=&quot;false&quot;&gt;
          &lt;level value=&quot;INFO&quot;/&gt;
          &lt;appender-ref ref=&quot;AdoNetAppender&quot;/&gt;
      &lt;/logger&gt;
      &lt;appender name=&quot;AdoNetAppender&quot; type=&quot;log4net.Appender.AdoNetAppender&quot;&gt;
          &lt;bufferSize value=&quot;1&quot; /&gt;
          &lt;ReconnectOnError value=&quot;true&quot; /&gt;
          &lt;connectionType
            value=&quot;System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&quot; /&gt;
          &lt;connectionStringName value=&quot;LogConnection&quot; /&gt;
          &lt;commandText
            value=&quot;INSERT INTO log4netlog ([Date],[Thread],[Level],[Logger],[Message],[Exception]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception)&quot; /&gt; 
      &lt;/appender&gt;
      &lt;appender name=&quot;ConsoleAppender&quot; type=&quot;log4net.Appender.ColoredConsoleAppender&quot;&gt;
          &lt;threshold value=&quot;ALL&quot; /&gt;
          &lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt;
              &lt;conversionPattern value=&quot;%d [%t] %-5p %c %m%n&quot; /&gt;
          &lt;/layout&gt;
      &lt;/appender&gt; 
      &lt;appender name=&quot;myMicrosoftTeamsAppender&quot; type=&quot;log4net.MicrosoftTeams.MicrosoftTeamsAppender, log4net.MicrosoftTeams&quot;&gt;
          &lt;WebhookUrl value=&quot;my Teams URL&quot; /&gt;     
          &lt;titleLayout&gt;
              &lt;conversionPattern value=&quot;Title - %p: %date [%c]&quot; /&gt;
          &lt;/titleLayout&gt;
          &lt;layout type=&quot;log4net.Layout.PatternLayout&quot;&gt;
              &lt;conversionPattern value=&quot;%-5level %logger - %message&quot; /&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  &lt;/log4net&gt;
  </code></pre>
  <p>So I already had an test project with this Teams appender and everytime I added a Log a message in the Teams channel gets created. But now I'm trying to add this in my real project and it doesn't work. I tried it with this code in my Startup class:</p>
  <pre><code>log4net.Config.XmlConfigurator.Configure();
  var logger = LogManager.GetLogger(&quot;myMicrosoftTeamsAppender&quot;);
  logger.Info(&quot;Info.&quot;);
  logger.Fatal(&quot;Fatal!&quot;, new ArgumentException(&quot;42&quot;));
  </code></pre>
  <p>How can I solve this?
  let me know if you need any other parts of the code :)</p>
  <p>Edit:
  I found this in the Output:</p>
  <pre><code>...
  log4net: Loading Appender [teams] type: [log4net.MicrosoftTeams.MicrosoftTeamsAppender, log4net.MicrosoftTeams]
  log4net:ERROR Could not create Appender [teams] of type [log4net.MicrosoftTeams.MicrosoftTeamsAppender, log4net.MicrosoftTeams]. Reported error follows.
  System.IO.FileNotFoundException: Die Datei oder Assembly &quot;log4net.MicrosoftTeams&quot; oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
  Dateiname: &quot;log4net.MicrosoftTeams&quot;
     bei System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
     bei System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
     bei System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark&amp; stackMark)
     bei System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
     bei log4net.Util.SystemInfo.GetTypeFromString(Assembly relativeAssembly, String typeName, Boolean throwOnError, Boolean ignoreCase)
     bei log4net.Util.SystemInfo.GetTypeFromString(String typeName, Boolean throwOnError, Boolean ignoreCase)
     bei log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlElement appenderElement)
  
  ...
  </code></pre>
  <p>Update:
  I'm just getting this error now:</p>
  <pre><code>log4net:ERROR Appender named [myMicrosoftTeamsAppender] not found.
  </code></pre>
  <p><a href="https://stackoverflow.com/questions/71309025/log4net-error-appender-named-not-found">Additonal informations</a></p>