Serilog RollingFile

前端 未结 7 1297
囚心锁ツ
囚心锁ツ 2021-01-07 19:45

I am trying to use WriteTo.RollingFile with Serilog as the following:

var log = new LoggerConfiguration().WriteTo.RollingFile(
                    @\"F:\\log         


        
相关标签:
7条回答
  • 2021-01-07 20:11

    As a follow up to this make sure you then use the globally scoped "Log" instance.

    Example:

    Log.Information("Hello world");
    
    0 讨论(0)
提交回复
热议问题