Skip to content

danielchalmers/serilog-sinks-textwriter

 
 

Repository files navigation

#Serilog.Sinks.TextWriter

The System.IO.TextWriter sink for Serilog.

Build status NuGet Version

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.

var messages = new StringWriter();

var log = new LoggerConfiguration()
    .WriteTo.TextWriter(messages)
    .CreateLogger();

Copyright © 2016 Serilog Contributors - Provided under the Apache License, Version 2.0.

About

The System.IO.TextWriter sink for Serilog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 95.4%
  • PowerShell 4.6%