DotBased/DotBased.Logging.MEL/LoggerBuilderExtensions.cs
2025-01-27 01:21:09 +01:00

13 lines
382 B
C#
Executable File

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));
}
}