如何在Serilog的代码中添加outputTemplate?

时间:2015-08-20 21:16:36

标签: serilog

我如何将outputTemplate添加到此代码中?

Serilog.Log.Logger = new LoggerConfiguration()
                .MinimumLevel.Information()
                .Enrich.WithMachineName()
                .WriteTo.Sink(new RollingFileSink(applicationLogsPath, new JsonFormatter(), 1000000000, 10))
                .CreateLogger();

0 个答案:

没有答案