Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serilog/serilog-sinks-textwriter
The System.IO.TextWriter sink for Serilog
https://github.com/serilog/serilog-sinks-textwriter
Last synced: 8 days ago
JSON representation
The System.IO.TextWriter sink for Serilog
- Host: GitHub
- URL: https://github.com/serilog/serilog-sinks-textwriter
- Owner: serilog
- License: apache-2.0
- Created: 2016-03-09T06:06:08.000Z (over 8 years ago)
- Default Branch: dev
- Last Pushed: 2024-06-22T22:37:05.000Z (5 months ago)
- Last Synced: 2024-06-23T03:51:49.166Z (5 months ago)
- Language: C#
- Size: 78.1 KB
- Stars: 8
- Watchers: 13
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# Serilog.Sinks.TextWriter
The System.IO.TextWriter sink for Serilog.
[![Build status](https://ci.appveyor.com/api/projects/status/rkbgynaaav6g6789?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-textwriter) [![NuGet Version](http://img.shields.io/nuget/v/Serilog.Sinks.TextWriter.svg?style=flat)](https://www.nuget.org/packages/Serilog.Sinks.TextWriter/)
Writes to a specified `System.IO.TextWriter` and can thus be attached to practically any text-based .NET output and the in-memory `System.IO.StringWriter` class.
```csharp
var messages = new StringWriter();var log = new LoggerConfiguration()
.WriteTo.TextWriter(messages)
.CreateLogger();
```* [Documentation](https://github.com/serilog/serilog/wiki)
Copyright © 2016 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html).