title: Dependency injection for a static method
body: <p>I have a class in an API, have a static method, intended to validate and log details. Any guidance how to inject ILogger interface please.</p>
  
  <pre><code>public class ValidateDataInAPI
  {
      public static bool IsValid(string data)
      {
          //do something
          If(error) 
          {
              _logger.Error("Log error as implemented by caller");
          }
      }
  }
  </code></pre>