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
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Serilog.Sinks.File [](https://ci.appveyor.com/project/serilog/serilog-sinks-file)[](https://travis-ci.org/serilog/serilog-sinks-file)[](https://www.nuget.org/packages/Serilog.Sinks.File/)[](https://github.com/serilog/serilog/wiki)[](https://gitter.im/serilog/serilog)
1
+
# Serilog.Sinks.File [](https://ci.appveyor.com/project/serilog/serilog-sinks-file)[](https://www.nuget.org/packages/Serilog.Sinks.File/)[](https://github.com/serilog/serilog/wiki)[](https://gitter.im/serilog/serilog)
2
2
3
3
Writes [Serilog](https://serilog.net) events to one or more text files.
if(fileSizeLimitBytes.HasValue&&fileSizeLimitBytes<0)thrownewArgumentException("Negative value provided; file size limit must be non-negative");
57
-
if(retainedFileCountLimit.HasValue&&retainedFileCountLimit<1)thrownewArgumentException("Zero or negative value provided; retained file count limit must be at least 1");
56
+
if(fileSizeLimitBytes.HasValue&&fileSizeLimitBytes<0)thrownewArgumentException("Negative value provided; file size limit must be non-negative.");
57
+
if(retainedFileCountLimit.HasValue&&retainedFileCountLimit<1)thrownewArgumentException("Zero or negative value provided; retained file count limit must be at least 1.");
58
58
59
59
_roller=newPathRoller(path,rollingInterval);
60
60
_textFormatter=textFormatter;
@@ -64,6 +64,7 @@ public RollingFileSink(string path,
0 commit comments