We have simple code that logs the HL7 message control id and thread name to a date stamped file with the same name as the thread.
eg file eds_prod_rp_adt_out_20050923.log
contains eds_prod_rp_adt_out PJ@RP0913410875 …
We perform almost all of our translations in TCL code and display the message in its pre and post translation state.
This could also be performed before and after the normal Xlate