log content of each inbound and outbound message