Record message and export the message to local file.