serilog-sinks-file icon indicating copy to clipboard operation
serilog-sinks-file copied to clipboard

serilog No write

Open anan1213095357 opened this issue 2 years ago • 1 comments

serilog No write

Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .MinimumLevel.Information() .MinimumLevel.Error() .WriteTo.File($"C:\\logs\\log.txt", rollingInterval: RollingInterval.Day) //.WriteTo.File($"{AppContext.BaseDirectory}logs\\log.txt", rollingInterval: RollingInterval.Day) .CreateLogger(); Log.Information("test");

anan1213095357 avatar Sep 21 '22 15:09 anan1213095357

Stackoverflow.com is the recommended place for usage questions such as this. Please take the time to supply more complete information so people don't have to guess. Basic stuff like making sure the code is legible will also encourage people to engage with your question over there

bartelink avatar Sep 21 '22 19:09 bartelink