How to Use Notepad to Create a Log File

Nice tip for Notepad from weekly email from Veeam’s Gostev.

How to Use Notepad to Create a Log File


Summary


Microsoft Notepad is a word processing tool included with Windows and is installed by default under the Accessories program group. You can use it to create a log-type file that adds the current date and time each time the Notepad file is opened. This article describes how to create a log file with Notepad.

More Information


To create a log file in Notepad:

  1. Click Start, point to Programs, point to Accessories, and then click Notepad.
  2. Type .LOG on the first line, and then press ENTER to move to the next line.
  3. On the File menu, click Save As, type a descriptive name for your file in the File name box, and then click OK. When you next open the file, note that the date and time have been appended to the end of the log, immediately preceding the place where new text can be added. You can use this functionality to automatically add the current date and time to each log entry.

Source: https://support.microsoft.com/en-us/help/260563/how-to-use-notepad-to-create-a-log-file