ArieGato / serilog-sinks-rabbitmq

Serilog Sink for RabbitMq
Apache License 2.0
53 stars 51 forks source link

Added level template in routing key #54

Closed bhutten14 closed 5 years ago

bhutten14 commented 5 years ago

This PR adds support for using the log level in the route key. When using route key Logging.Log.Entry.{level}.Add for example, the route key for logging a message with level LogEventLevel.Information will be Logging.Log.Entry.Information.Add.

tsvetelintsonev commented 5 years ago

This seems to me more like an application specific details. It can be achieved with something like RouteKeyResolver etc. @sonicjolt What is your take on this?

madslyng commented 5 years ago

@tsvetelintsonev I agree. The concept of LogLevel is really only about controlling what is output'ed to the logger, and shouldn't be part of the interface.

I will close this as unfitting. I understand the idea, but it doesn't belong in this Sink.