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)
Dependencies
.NETFramework 4.5
- Serilog(>= 2.6.0)
- NETStandard.Library(>= 1.6.1)
- Serilog(>= 2.6.0)
Tags
```
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.