mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-01-18 18:14:20 +01:00
14 lines
403 B
C#
14 lines
403 B
C#
using Microsoft.Extensions.Logging;
|
|
|
|
namespace DotBased.Logging.MEL;
|
|
|
|
public static class LoggerBuilderExtensions
|
|
{
|
|
public static ILoggingBuilder AddDotBased(this ILoggingBuilder builder, LogOptions options)
|
|
{
|
|
if (builder == null)
|
|
throw new ArgumentNullException(nameof(builder));
|
|
builder.AddProvider(new BasedLoggerProvider(options));
|
|
return builder;
|
|
}
|
|
} |