Move logging of sent messages to switch backend module