title: Using Octopus to configure log4net.config in .NET Core 3.1 Web API project
body: <p>I'm using Octopus as part of our deployment for a .NET Core 3.1 Web API project.</p>
  <p><code>log4net.config</code> exists in <code>.\Utility\Logs</code>.</p>
  <p>I'm trying to follow the pattern here:
  <a href="https://help.octopus.com/t/transformation-best-practice-log4net-config-or-any-non-web-app-config/9906/4" rel="nofollow noreferrer">https://help.octopus.com/t/transformation-best-practice-log4net-config-or-any-non-web-app-config/9906/4</a></p>
  <p>As I understand it, this consists of three parts:</p>
  <ol>
  <li><p>Create <code>Log4Net.DeploymentTransform.config</code>, with the variables in <code>#{name}</code> format - this has been done.</p>
  </li>
  <li><p>Turn on the &quot;Substitute variables in files&quot; feature, and point at the <code>Log4Net.DeploymentTransform.config</code> transformation file (variable replacement happens before transformation). That would result in the <code>#{LogFileLocation}</code> variable being replaced with whatever value was set for your <code>LogFileLocation</code> variable in the current scope.</p>
  <p>This is done and is working.when my app is deployed, <code>Log4Net.DeploymentTransform.config</code> is there as well and the variable has been successfully set in it.</p>
  </li>
  <li><p>You'd also turn on the configuration transforms feature, and fill out the additional transforms section in the configuration transforms feature to identify your transform file (e.g. <code>Log4Net.DeploymentTransform.config</code> =&gt; <code>log4net.config</code>).</p>
  <p>This is not working, the content of <code>Log4Net.DeploymentTransform.config</code> is not being copied on top of <code>log4net.config</code>, though they are in the same folder upon deployment.</p>
  </li>
  </ol>
  <p>Here is what I did in our &quot;deploy step&quot;</p>
  <p><a href="https://i.stack.imgur.com/ekUuP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ekUuP.png" alt="enter image description here" /></a></p>
  <p>Which sure looks like what the article is saying to do.</p>
  <p>What else should I check? Any idea why step 3 isn't occurring?</p>