I am trying to use the new RoutingAppender of Log4j2 to route the different logs based on the MDC (ThreadContext in Log4j2). What I want to do is the following:
Does this answer your question? https://issues.apache.org/jira/browse/LOG4J2-326
Remko