Esempio n. 1
0
        public static void AddRabbitMQ(this ILoggerFactory factory, IConfiguration configuration, EventId eventId)
        {
            ILoggerProvider provider = new RabbitMQLoggerProvider(
                (n, l, e, ex) =>
            {
                return(l >= LogLevel.Information &&
                       e.Id == eventId);
            }, configuration);

            factory.AddProvider(provider);
        }
Esempio n. 2
0
        public static void AddRabbitMQ(this ILoggerFactory factory, IConfiguration configuration)
        {
            ILoggerProvider provider = new RabbitMQLoggerProvider((n, l, e, ex) => l >= LogLevel.Information, configuration);

            factory.AddProvider(provider);
        }