public void Log <TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func <TState, Exception, string> formatter) { var message = formatter(state, exception); var logEntry = new TestLogEntry(logLevel, eventId, exception, message); _logSink.Log(logEntry); }
public void Log(TestLogEntry logEntry) { _logEntries.Enqueue(logEntry); }