serilog-sinks-elasticsearch icon indicating copy to clipboard operation
serilog-sinks-elasticsearch copied to clipboard

[Docs] Update example for handling errors in README.md

Open AdisonCavani opened this issue 3 years ago • 0 comments

The example for handling errors in README.md is obsolete:

[...] new FileSink("./failures.txt", new JsonFormatter(), null)

FileSink is obsolete and will be removed from the public API in a future version. The example should use WriteToFile() instead.

References

Source code of FileSink

AdisonCavani avatar Apr 04 '22 16:04 AdisonCavani