public static ILoggingBuilder AddFluentdLogger( this ILoggingBuilder builder, FluentdOptions fluentdOptions) { if (fluentdOptions == null) { throw new ArgumentNullException(nameof(fluentdOptions)); } builder.Services .AddSingleton <IFluentdOptions>(fluentdOptions); return(builder.AddFluentdLogger(builder.Services)); }
public static ILoggingBuilder AddProviderFluentdWithDefaults( this ILoggingBuilder loggingBuilder, FluentdOptions fluentdOptions) { loggingBuilder .Services .AddDefaultLogProperties() .AddDefaultLogSerializer(); loggingBuilder .AddFluentdLogger(fluentdOptions); return(loggingBuilder); }