Message Management is a good way to log the execution of a flow while getting the most information from intermediate stages. The solution explained will give you more information on how to do this and help you to get the most out it.

The goal of the solution is to enable the developer  to easily create a complex set of unique variations of messages (displayed in the log of the executed flow).