public void Log <TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func <TState, Exception, string> formatter) { _fixture.Record(_categoryName, logLevel, eventId, state as IReadOnlyCollection <KeyValuePair <string, object> >, exception, formatter(state, exception)); }