title: How do I log from other classes than the controller in ASP.NET Core?
body: <p>ASP.NET Core has built-in support for logging, but the documentation states that logging should be done by requesting an <code>ILogger</code> via dependency injection, i.e. by adding it as an argument to the <code>Controller</code> constructor.</p>
  
  <p>Polluting method signatures or constructors throughout my code with <code>ILogger</code> arguments feels like the wrong solution for this cross-cutting concern.  In Android the <code>Log</code> class is static, making it trivial to log from any part of the code.</p>
  
  <p>What would be a good way to do logging from other places than the controller?</p>