title: How to configure SNMP Appender in Log4j2.xml?
body: <p>We have configured the SNMP appender as below in log4j.xml</p>
  
  <pre><code>&lt;appender name="TRAP_LOG_APPENDER" class="org.apache.log4j.ext.SNMPTrapAppender"&gt;       
          &lt;param name="ImplementationClassName" value="org.apache.log4j.ext.JoeSNMPTrapSender"/&gt;
          &lt;param name="EnterpriseOID" value="1.3.6.1.4.1.2854.1"/&gt;
          &lt;param name="ApplicationTrapOID" value="1.3.6.1.4.1.24.12.10.22.64"/&gt;
          &lt;param name="ManagementHost" value="127.0.0.1"/&gt; 
          &lt;param name="ManagementHostTrapListenPort" value="162"/&gt; 
          &lt;param name="LocalIPAddress" value="127.0.0.1"/&gt; 
          &lt;param name="LocalTrapSendPort" value="161"/&gt; 
          &lt;param name="GenericTrapType" value="6"/&gt; 
          &lt;param name="SpecificTrapType" value="12345678"/&gt; 
          &lt;param name="CommunityString" value="public"/&gt; 
          &lt;param name="ForwardStackTraceWithTrap" value="true"/&gt; 
          &lt;param name="Threshold" value="INFO"/&gt; 
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%d,%p,[%t],[%c],%m%n"/&gt; 
          &lt;/layout&gt; 
      &lt;/appender&gt;
  </code></pre>
  
  <p>Since appender tag is no longer in use with the latest log4j2 version ,We need help to configure the same in log4j2.xml.Thanks!!! </p>