title: "Value cannot be null. (Parameter 'logger')" - Durable Function Activity
body: <p>I have the following activity function:</p>
  <pre><code> [FunctionName(&quot;LoadSubscriptionAnalytics_Activity&quot;)]
          public static async Task&lt;IActionResult&gt; RunActivity([ActivityTrigger] ILogger log
          )
          {                              
              log.LogInformation(&quot;Activity function&quot;);
          }
  </code></pre>
  <p>Log.LogInformation fails with error: Value cannot be null. (Parameter 'logger')</p>
  <p>The logger works in my orchestrator function:</p>
  <pre><code> [FunctionName(&quot;LoadSubscriptionAnalytics_Orchestrator&quot;)]
          public static async Task&lt;List&lt;Task&lt;IActionResult&gt;&gt;&gt; RunOrchestrator(
              [OrchestrationTrigger] IDurableOrchestrationContext context, ILogger log)
          {
              var outputs = new List&lt;Task&lt;IActionResult&gt;&gt;();
           
              log.LogInformation(&quot;Orchestrator function&quot;);
              
              outputs.Add(await context.CallActivityAsync&lt;Task&lt;IActionResult&gt;&gt;(&quot;LoadSubscriptionAnalytics_Activity&quot;, null));          
             
              return outputs;
          }
  </code></pre>
  <p>Why is this dependency injection not working?
  I am using Functions V2 with .Net Core 3.1</p>