2019-07-03 11:21:29 -05:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
using System;
|
2018-12-14 17:38:48 -06:00
|
|
|
|
|
|
|
|
|
namespace Roadie.Library.Processors
|
|
|
|
|
{
|
|
|
|
|
public interface IEventMessageLogger
|
|
|
|
|
{
|
|
|
|
|
event EventHandler<EventMessage> Messages;
|
|
|
|
|
|
|
|
|
|
IDisposable BeginScope<TState>(TState state);
|
2019-07-03 11:21:29 -05:00
|
|
|
|
|
2018-12-14 17:38:48 -06:00
|
|
|
|
bool IsEnabled(LogLevel logLevel);
|
2019-07-03 11:21:29 -05:00
|
|
|
|
|
|
|
|
|
void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception,
|
|
|
|
|
Func<TState, Exception, string> formatter);
|
2018-12-14 17:38:48 -06:00
|
|
|
|
}
|
|
|
|
|
}
|