I had a very similar issue. In my case, the problem was with relative paths.
I just had to specify the absolute path. Now it works like a charm.
WriteTo.RollingFile(AppDomain.CurrentDomain.BaseDirectory + "\\logs\\log-{Date}.log")
I had a very similar issue. In my case, the problem was with relative paths.
I just had to specify the absolute path. Now it works like a charm.
WriteTo.RollingFile(AppDomain.CurrentDomain.BaseDirectory + "\\logs\\log-{Date}.log")