Skip to content

Commit

Permalink
Merge pull request #25 from serilog/dev
Browse files Browse the repository at this point in the history
3.0.1 Release
  • Loading branch information
nblumhardt committed Sep 11, 2016
2 parents d8ea12f + 9212aed commit 5ebf1d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ log-20160701.txt
log-20160702.txt
```

> **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).
> **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.
### Limits

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

### Shared log files

To enable multi-process shared log files, set `shared` to `true`:

```csharp
.WriteTo.RollingFile("log-{Date}.txt", shared: true)
```

### Performance

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.
Expand Down
4 changes: 2 additions & 2 deletions src/Serilog.Sinks.RollingFile/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.0.0-*",
"version": "3.0.1-*",
"description": "The rolling file sink for Serilog - Simple .NET logging with fully-structured events",
"authors": [ "Serilog Contributors" ],
"packOptions": {
Expand All @@ -9,7 +9,7 @@
"iconUrl": "http://serilog.net/images/serilog-sink-nuget.png"
},
"dependencies": {
"Serilog.Sinks.File": "3.0.0"
"Serilog.Sinks.File": "3.0.1"
},
"buildOptions": {
"keyFile": "../../assets/Serilog.snk",
Expand Down

0 comments on commit 5ebf1d5

Please sign in to comment.