Skip to content

Euphoric/Euphoric.Logging.Memory

Repository files navigation

Euphoric.Logging.Memory

.NET Core implmenetation of Microsoft.Extensions.Logging, which logs into memory. Useful for test automation.

Build Status

Usage

Install NuGet package : Install-Package Euphoric.Logging.Memory

Setup logger provider : services.AddLogging(loggingBuilder => loggingBuilder.AddMemoryLogger());

To retrieve the logs from memory :

var memoryLogger = sp.GetRequiredService<IMemoryLogSource>();
var loggedEntries = memoryLogger.Logs;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages