Skip to content

Instantly share code, notes, and snippets.

View Longfld's full-sized avatar

Longfld

View GitHub Profile
@Longfld
Longfld / Serilog
Last active April 24, 2020 19:07
How to use serilog in ASP.NET Core 2.0
How to use serilog in ASP.NET Core 2.0
One of major changes core 2.0 compare to core 2 preview is how to registe logging.
logging should be configged before website instanced.
public class Program
{
public static void Main(string[] args)
{