Skip to content

Commit 5ebf1d5

Browse files
authored
Merge pull request #25 from serilog/dev
3.0.1 Release
2 parents d8ea12f + 9212aed commit 5ebf1d5

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Diff for: README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ log-20160701.txt
2828
log-20160702.txt
2929
```
3030

31-
> **Important:** Only one process may write to a log file at a given time. For multi-process scenarios, either use separate files or [one of the non-file-based sinks](https://github.com/serilog/serilog/wiki/Provided-Sinks).
31+
> **Important:** By default, only one process may write to a log file at a given time. See _Shared log files_ below for information on multi-process sharing.
3232
3333
### Limits
3434

@@ -146,6 +146,14 @@ To write events to the file in an alternative format such as JSON, pass an `ITex
146146
.WriteTo.RollingFile(new JsonFormatter(), "log-{Date}.txt")
147147
```
148148

149+
### Shared log files
150+
151+
To enable multi-process shared log files, set `shared` to `true`:
152+
153+
```csharp
154+
.WriteTo.RollingFile("log-{Date}.txt", shared: true)
155+
```
156+
149157
### Performance
150158

151159
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.

Diff for: src/Serilog.Sinks.RollingFile/project.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.0.0-*",
2+
"version": "3.0.1-*",
33
"description": "The rolling file sink for Serilog - Simple .NET logging with fully-structured events",
44
"authors": [ "Serilog Contributors" ],
55
"packOptions": {
@@ -9,7 +9,7 @@
99
"iconUrl": "http://serilog.net/images/serilog-sink-nuget.png"
1010
},
1111
"dependencies": {
12-
"Serilog.Sinks.File": "3.0.0"
12+
"Serilog.Sinks.File": "3.0.1"
1313
},
1414
"buildOptions": {
1515
"keyFile": "../../assets/Serilog.snk",

0 commit comments

Comments
 (0)