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);
 }
示例#3
0
 public RabbitMqLogger(string categoryName, RabbitMqLoggerSettings configuration)
 {
     this.Name      = categoryName;
     _configuration = configuration;
 }