title: Extension method for logging dotnet core webapi how do I get the calling projects/assembly name?
body: <p>This is the extension method</p>
  
  <pre><code>public static IApplicationBuilder UseLoggerConfig(this IApplicationBuilder app)
  {
      //add serilog https://github.com/serilog/serilog-extensions-logging
      // https://github.com/serilog/serilog-extensions-logging/blob/dev/samples/Sample/Program.cs
      Log.Logger = new LoggerConfiguration()
      .Enrich.FromLogContext()
      .WriteTo.File("log.txt", rollingInterval: RollingInterval.Day)
      .CreateLogger();
  
      var startTime = DateTimeOffset.UtcNow;
  
      Log.Logger.Information("Started at {StartTime} and 0x{Hello:X} is hex of 42", startTime, 42);
  
      return app;
  }
  </code></pre>
  
  <p>and we can use this in <code>Startup</code> like so</p>
  
  <pre><code>app.UseLoggerConfig();
  </code></pre>
  
  <p>I Would like to save the logs on <code>\\%windir%\log\callingAppName\logfile.log</code>.</p>
  
  <p>Any ideas how we could do this ?</p>