ThrowAwayLogger
is an implementation of ILogger
as well as ILogger<T>
which does nothing. Really: nothing.
Very handy for benchmarks or simple testing.
BenjaminAbt.Extensions.Logger.ThrowAwayLogger
// field
private ILogger _log = new ThrowAwayLogger();
// call
_log.Log(LogLevel.Information, _ex, "Test " + _message);
Nothing happens ¯_(ツ)_/¯