Keep a log using Microsoft Notepad by opening a new text file in Microsoft Notepad or an existing text file…