<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 New Relic Corporation. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->
<extension xmlns="urn:newrelic-extension">
  <instrumentation>
    <tracerFactory name="log4net">
      <match assemblyName="log4net" className="log4net.Repository.Hierarchy.Logger">
        <exactMethodMatcher methodName="CallAppenders" />
      </match>
    </tracerFactory>
    <!-- Sitecore uses an old fork of log4net with the same namespace -->
    <tracerFactory name="SitecoreLogging">
      <match assemblyName="Sitecore.Logging" className="log4net.Repository.Hierarchy.Logger">
        <exactMethodMatcher methodName="CallAppenders" />
      </match>
    </tracerFactory>
  </instrumentation>
</extension>
