Using Asp.Net Core 2 Injection for Serilog with Multiple Projects
问题 I have Serilog configured for Asp.Net Core 2.0 and it works great via .Net Core dependency injection in my startup web project (if I use it through Microsoft.Extensions.Logging), but I can't access it from any other project. Here's what I have: Program.cs using System; using System.IO; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Serilog; namespace ObApp.Web.Mvc { public class Program { public static IConfiguration