public RabbitMqLoggerProvider(RabbitMqLoggerSettings configuration) { _configuration = configuration; _configuration.ChangeToken.RegisterChangeCallback(p => { _configuration.Reload(); }, null); }
private static ILoggingBuilder AddLog2RabbitMq(this ILoggingBuilder builder, RabbitMqLoggerSettings loggerSettings) { builder.AddProvider(new RabbitMqLoggerProvider(loggerSettings)); return(builder); }
public RabbitMqLogger(string categoryName, RabbitMqLoggerSettings configuration) { this.Name = categoryName; _configuration = configuration; }