This PR adds support for building routing keys dynamically based on the log event.
When configuring the sink you can provide a delegate that receives the LogEvent and then use that event to build a routing key:
// The routing key will be the level of the event (e.g., "Information", "Fatal", etc.).
sinkConfiguration.BuildRoutingKey = logEvent => logEvent.Level.ToString();
If the BuildRoutingKey option is not supplied or returns null then it will use the static RouteKey from the configuration.
This PR adds support for building routing keys dynamically based on the log event.
When configuring the sink you can provide a delegate that receives the
LogEvent
and then use that event to build a routing key:If the
BuildRoutingKey
option is not supplied or returnsnull
then it will use the staticRouteKey
from the configuration.Resolves #104.