Serilog
August 2, 2016Serilog has been upgraded to a new version. The main thing is that it has now split into several packages, which helps to reduce the number updates, but also is a breaking change. Thus my minimum example for Serilog in F# has changed.
Nuget packages:
install-package Serilog
install-package Serilog.Sinks.RollingFile
Add the beginning of a module
module Logger =
let log = (new LoggerConfiguration()).WriteTo.RollingFile(„MyProgram-{Date}.log“).CreateLogger()
Actual logging code might look like this:
Logger.log.Information(„Start“)
Hinterlasse einen Kommentar