roadie/Roadie.Api.Library/Processors/IEventMessageLogger.cs
2019-07-03 11:21:29 -05:00

17 lines
No EOL
449 B
C#

using Microsoft.Extensions.Logging;
using System;
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);
}
}