roadie/Roadie.Api.Library/Processors/IEventMessageLogger.cs
2018-12-26 13:39:13 -06:00

14 lines
No EOL
435 B
C#

using System;
using Microsoft.Extensions.Logging;
namespace Roadie.Library.Processors
{
public interface IEventMessageLogger
{
event EventHandler<EventMessage> Messages;
IDisposable BeginScope<TState>(TState state);
bool IsEnabled(LogLevel logLevel);
void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter);
}
}