Skip to content

BenjaminAbt/ThrowAwayLogger

Repository files navigation

ThrowAwayLogger

ThrowAwayLogger is an implementation of ILogger as well as ILogger<T> which does nothing. Really: nothing.

Very handy for benchmarks or simple testing.

NuGet

BenjaminAbt.Extensions.Logger.ThrowAwayLogger

Sample

// field
private ILogger _log = new ThrowAwayLogger();

// call
_log.Log(LogLevel.Information, _ex, "Test " + _message);

Nothing happens ¯_(ツ)_/¯

About

A very simple ILogging mock mechanism.

Topics

Resources

License

Stars

Watchers

Forks

Languages