Skip to content

Commit bc10e4c

Browse files
authored
Link File sink instead of RollingFile from README [skip ci]
1 parent 7551ea1 commit bc10e4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Install from [NuGet](https://nuget.org/packages/Serilog.Formatting.Compact):
1818
Install-Package Serilog.Formatting.Compact
1919
```
2020

21-
The formatter is used in conjunction with sinks that accept `ITextFormatter`. For example, the [rolling file](https://github.com/serilog/serilog-sinks-rollingfile) sink:
21+
The formatter is used in conjunction with sinks that accept `ITextFormatter`. For example, the [file](https://github.com/serilog/serilog-sinks-file) sink:
2222

2323
```csharp
2424
Log.Logger = new LoggerConfiguration()
25-
.WriteTo.RollingFile(new CompactJsonFormatter(), "./logs/myapp.json")
25+
.WriteTo.File(new CompactJsonFormatter(), "./logs/myapp.json")
2626
.CreateLogger();
2727
```
2828

0 commit comments

Comments
 (0)