You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the rolling file sink will flush each event written through it to disk. To improve write performance, specifying `buffered: true` will permit the underlying stream to buffer writes.
152
+
153
+
The [Serilog.Sinks.Async](https://github.com/serilog/serilog-sinks-async) package can be used to wrap the rolling file sink and perform all disk accss on a background worker thread.
154
+
149
155
### Alternatives
150
156
151
157
The default rolling file sink is designed to suit most applications. So that we can keep it maintainable and reliable, it does not provide a large range of optional behavior. Check out alternative implemementations like [this one](https://github.com/BedeGaming/sinks-rollingfile) if your needs aren't met by the default version.
if(fileSizeLimitBytes.HasValue&&fileSizeLimitBytes<0)thrownewArgumentException("Negative value provided; file size limit must be non-negative");
71
74
if(retainedFileCountLimit.HasValue&&retainedFileCountLimit<1)thrownewArgumentException("Zero or negative value provided; retained file count limit must be at least 1");
72
75
76
+
#if !SHARING
77
+
if(shared)
78
+
thrownewNotSupportedException("File sharing is not supported on this platform.");
0 commit comments