For unit tests I have used <message-history/> and the following code to verify the route taken was correct and in order. Perhaps you can get the information in the same way I did and create your custom logging.
Code:
MessageHistory mh = MessageHistory.read(message);
assertThat(mh.size(), is(equalTo(13)));
int index = 0;
Properties props = TestUtils.locateComponentInHistory(mh, "ws-rawInboundChannel", index);
assertThat(props, is(notNullValue()));
props = TestUtils.locateComponentInHistory(mh, "enrichWithTransactionId", ++index);
assertThat(props, is(notNullValue()));