implemented the function that read a log from the clipboard.