Example #1
0
        public static ILoggingBuilder AddNFlagsOutput(this ILoggingBuilder loggingBuilder, Action <NFlagsOutputLoggerConfiguration> configure)
        {
            var config = new NFlagsOutputLoggerConfiguration();

            configure(config);
            return(loggingBuilder.AddNFlagsOutput(config));
        }
Example #2
0
        public static ILoggerFactory AddNFlagsOutput(this ILoggerFactory loggerFactory, Action <NFlagsOutputLoggerConfiguration> configure)
        {
            var config = new NFlagsOutputLoggerConfiguration();

            configure(config);
            return(loggerFactory.AddNFlagsOutput(config));
        }
Example #3
0
 public NFlagsOutputLoggerProvider(NFlagsOutputLoggerConfiguration config)
 {
     _config = config;
 }
Example #4
0
 public static ILoggingBuilder AddNFlagsOutput(this ILoggingBuilder loggingBuilder, NFlagsOutputLoggerConfiguration config)
 {
     loggingBuilder.AddProvider(new NFlagsOutputLoggerProvider(config));
     return(loggingBuilder);
 }
Example #5
0
 public static ILoggerFactory AddNFlagsOutput(this ILoggerFactory loggerFactory, NFlagsOutputLoggerConfiguration config)
 {
     loggerFactory.AddProvider(new NFlagsOutputLoggerProvider(config));
     return(loggerFactory);
 }