Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void Log(TestLogEntry logEntry)
 {
     _logEntries.Enqueue(logEntry);
 }