Serilog.Sinks.ListOfString (nuget): 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.
Keywords: nunit|test|unittest|tdd|mock|logging|serilog