Serilog.Sinks.ListOfString : Test your logging with WriteTo.StringList NuGet Package

Serilog.Sinks.ListOfString logs to a list of string so you can test your logging :

```
var log= new List<String>();
var testLogger= new LoggerConfiguration().WriteTo.StringList(log).CreateLogger();

...tests...

log.ShouldContain( x=>x.Matches("kilroy was here") );

```
This is for Serilog.

For Microsoft.Extensions.Logging.Abstractions see also https://www.nuget.org/packages/Extensions.Logging.ListOfString/

Part of https://www.nuget.org/packages/TestBase

*TestBase* gives you a flying start to unit testing with fluent assertions that are easy to extend, and
tools for testing with dependencies on AspNetMvc, HttpClient, Ado.Net, Streams and Loggers.




Got any Serilog.Sinks.ListOfString : Test your logging with WriteTo.StringList Question?





Info

Version: 4.1.4.3
Author(s): Chris F Carroll
Last Update: Tuesday, November 20, 2018
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/chrisfcarroll/TestBase
NuGet Url: https://www.nuget.org/packages/Serilog.Sinks.ListOfString


Install
Install-Package Serilog.Sinks.ListOfString
dotnet add package Serilog.Sinks.ListOfString
paket add Serilog.Sinks.ListOfString
Serilog.Sinks.ListOfString Download (Unzip the "nupkg" after downloading)

.NETFramework 4.5 .NETStandard 1.3 2 packages depend on this package.


Tags



STATS

must-have-score

1.4

avg-downloads-per-day

12

days-since-last-release

2193