It is possible to filter messages using markers, such as :
<MarkerFilter marker="FLOW" onMatch="ACCEPT" onMismatch="DENY"/>
However I'm trying to route a message based on the marker using the RoutingAppender. I don't want to filter the same arguments multiple times in multiple Appenders. Here's my configuration sample (yaml):
Routing:
name: ROUTING_APPENDER
Routes:
pattern: "$${ctx:marker}" #<-- How to use Marker here?
Route:
- key: MyRoutingKey
ref: MyCustomAppender
The documentation stipulates :
The pattern is evaluated against all the registered Lookups and the result is used to select a Route
However there seems to be no Lookup for Markers, same for LogLevel. It would be possible to add a custom MarkerValue or LogLevelValue in the ThreadContextMap but I don't find the solution really efficient, it duplicates known information.
Is it not documented or just impossible? Should there be a built-in way to have access to those values in Lookup?