A rolling interval controls how often a file sink starts a new log file. With a daily interval, the sink creates one file for each day and timestamps filenames accordingly. section 7.4.5
Daily application logs
Configure Serilog’s file sink with `Logs/log.txt` and `rollingInterval: RollingInterval.Day`. The resulting files follow names such as `log20220518.txt` and `log20220519.txt`. section 7.4.5
Use a rolling interval when configuring a file sink:
- Set `rollingInterval` to `RollingInterval.Day` when logs should be separated by calendar day. section 7.5.5
- Run the application and inspect the `/Logs/` folder to verify that the expected dated file appears. section 7.4.5
