BedeGaming / sinks-rollingfile

A serilog sink for rolling files based on size and time
Apache License 2.0
15 stars 20 forks source link

Adding RetainedFileCountLimit #22

Closed AndyWardle closed 8 years ago

AndyWardle commented 8 years ago

The default Serilog RollingFile implementation has the ability to set the RetainedFileCountLimit. This deletes any files over the set limit when the log file rolls over.

The default implementation has a default of 31 days (as it only rolls over on a day basis, this implementation keeps the existing behaviour of unlimited log files by keeping the default set as null.