DotBased/DotBased.Logging.MEL/LoggerBuilderExtensions.cs

13 lines
382 B
C#
Raw Normal View History

using Microsoft.Extensions.Logging;
namespace DotBased.Logging.MEL;
public static class LoggerBuilderExtensions
{
public static void AddDotBasedLoggerProvider(this ILoggingBuilder builder, LogOptions options)
{
if (builder == null)
throw new ArgumentNullException(nameof(builder));
builder.AddProvider(new BasedLoggerProvider(options));
}
}