Description
I was looking into moving our code from NLog to Serilog, but the rolling file sink is severly limited in comparison and probably a showstopper for us. (Even considering the alternative rolling file package)
First there are very few options, like choosing the period for a date-based rolling. E.g. having monthly files for a log that has few activity and long retention.
The lack of concurrent writes support is bad. As noted in the 2014 blog post, there was the IIS recycling issue. The split-file _001
trick is a hack but the worse is that retention is based on file count! So if one day I have issues and my app pool recycles like crazy, I'm going to loose all my log files! This doesn't seem ok to me.
I am tempted by all the cool Serilog structured logging features, but the rolling file sink is one (of two) blockers for me. It would be nice to port file target of NLog to Serilog, because it has plenty of options.