Closed nblumhardt closed 9 years ago
I'm not sure how to fix this. It sounds like something that needs to be done in the Serilog repo ?
What can I do to solve it ?
No, fixing it just entails adding an extra method in LoggerConfigurationRabbitMQExtension
that accepts individual parameters instead of the one big configuration object. If you have a look at e.g. the MongoDB sink you'll see this pattern in action.
Added overload of Extension method.
Believe this fixes the issue
https://github.com/sonicjolt/serilog-sinks-rabbitmq/blob/master/src/Serilog.Sink.RabbitMq/LoggerConfigurationRabbitMqExtension.cs#L21
Serilog's app settings support needs an overload of this method that accepts each parameter individually.