Very basic logging to file from Console app with Serilog

Add serilog

dotnet add package Serilog
static async Task Main(string[] args)
{
    Log.Logger = new LoggerConfiguration()
        .Enrich.FromLogContext()
        .WriteTo.Console()
        .WriteTo.File("logs/log.json")
        .CreateLogger();

    Log.Information("Running..");
}