Exemplo n.º 1
0
        public static ILoggingBuilder AddProviderFluentd(
            this ILoggingBuilder loggingBuilder)
        {
            loggingBuilder
            .AddFluentdLogger();

            return(loggingBuilder);
        }
Exemplo n.º 2
0
        public static ILoggingBuilder AddProviderFluentdWithDefaults(
            this ILoggingBuilder loggingBuilder)
        {
            loggingBuilder
            .Services
            .AddDefaultLogProperties()
            .AddDefaultLogSerializer();

            loggingBuilder
            .AddFluentdLogger();

            return(loggingBuilder);
        }
Exemplo n.º 3
0
        public static ILoggingBuilder AddProviderFluentd(
            this ILoggingBuilder loggingBuilder,
            IEnumerable <Type> loggingSerializers)
        {
            loggingBuilder
            .Services
            .AddSerializers(loggingSerializers);

            loggingBuilder
            .AddFluentdLogger();

            return(loggingBuilder);
        }
Exemplo n.º 4
0
        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));
        }
Exemplo n.º 5
0
 public static ILoggingBuilder AddFluentdLogger(
     this ILoggingBuilder builder)
 {
     return(builder.AddFluentdLogger(builder.Services));
 }