I used Serilog 1.x and following worked there:
In code:
Log.Logger = new LoggerConfiguration().ReadFrom.AppSettings().CreateLogger();
In app.config:
<add key="serilog:write-to:RollingFile.pathFormat" value="C:\Temp\MyService\Log-{Date}.log" />
But now with Serilog 2.1 seems that any write-to isn't working from app.config. When I put them straight to code it works but I want them to app.config. What is wrong with my code/app.config?