Create Quick Dated Logs with Notepad’s .LOG and F5 Timestamp in Windows 10/11
Difficulty: Beginner | Time Required: 10 minutesNeed a quick way to keep a dated record of events, troubleshooting notes, phone calls, work tasks, or system changes? Windows Notepad has a simple built-in trick that many users overlook: if you start a text file with
.LOG, Notepad can automatically add the current date and time each time you open that file. You can also press F5 inside Notepad to insert a timestamp manually whenever you want.This is perfect for lightweight logging without installing extra software. It works well for personal notes, PC maintenance records, support call logs, daily task tracking, or quick “what changed and when” documentation.
Prerequisites
Before you begin, you only need:- A Windows 10 or Windows 11 PC.
- The built-in Notepad app.
- Permission to save a text file in your chosen folder, such as Documents or Desktop.
Note: Notepad is included with Windows 10 and Windows 11. The app may look slightly different depending on your Windows version and Notepad updates. For example, Windows 11 Notepad may include tabs and modern styling, but the basic logging method is the same.
Part 1: Create an Automatic .LOG File
Follow these steps to create a Notepad file that automatically inserts a timestamp when opened.1. Open Notepad
- Click Start.
- Type Notepad.
- Select Notepad from the search results.
notepad, and press Enter.2. Type .LOG on the First Line
At the very top of the blank Notepad document, type:.LOGMake sure:
.LOGis on the first line.- There are no spaces before
.LOG. - You use a period before LOG.
- You press Enter after typing it.
Code:
.LOG
.LOG is where your first note can begin.Important: The.LOGinstruction must be the first line of the file. If you put text, spaces, or blank lines before it, Notepad may not treat the file as an automatic log.
3. Add Your First Log Entry
Below the.LOG line, type a short note. For example:
Code:
.LOG
Created this log to track printer troubleshooting.
4. Save the File
- Click File.
- Select Save As.
- Choose a convenient location, such as Documents or Desktop.
- Enter a descriptive file name.
Printer Troubleshooting Log.txtIf you prefer to use a
.log file extension, type something like:PrinterTroubleshooting.logThen change Save as type to All files before saving. Otherwise, Notepad may save it as
PrinterTroubleshooting.log.txt.- Click Save.
Tip: The automatic logging feature depends on.LOGbeing the first line inside the file. The file extension can be.txtor.log, but using.logcan make the purpose of the file clearer.
Part 2: Test the Automatic Timestamp
Now let’s confirm that the log works.1. Close Notepad
After saving the file, close Notepad completely.2. Reopen the File
Find the file you saved and double-click it.When the file opens, Notepad should automatically add the current date and time near the end of the file, placing your cursor after the timestamp so you can begin typing the next entry.
Your file may now look similar to this:
Code:
.LOG
Created this log to track printer troubleshooting.
5:42 PM 5/28/2026
3. Type Your New Entry
After the timestamp, type your next note. For example:
Code:
5:42 PM 5/28/2026
Restarted the print spooler service and tested printing again.
4. Save Your Changes
Press Ctrl + S or select File > Save.Note: The timestamp is inserted when the saved log file is opened. If you keep the file open all day, Notepad will not automatically add new timestamps unless you reopen the file or manually insert one with F5.
Part 3: Insert a Timestamp Manually with F5
Sometimes you may want to add a timestamp without closing and reopening the file. That is where F5 comes in.1. Place the Cursor Where You Want the Timestamp
Click in the Notepad document where the date and time should appear.For example, you might place the cursor on a new blank line after your last note.
2. Press F5
Press F5 on your keyboard.Notepad inserts the current time and date at the cursor position.
3. Add Your Note
After the timestamp, type your entry:
Code:
6:15 PM 5/28/2026
Confirmed the printer works after reboot.
Laptop Tip: On some laptops, the function keys are shared with brightness, volume, or media controls. If pressing F5 does not insert a timestamp, try Fn + F5 instead. Some keyboards also have an Fn Lock setting that changes how the function keys behave.
Practical Uses for Notepad Logs
This small feature can be surprisingly useful. Here are a few ideas:- Troubleshooting records
Track what you changed, when you changed it, and what happened afterward. - Software installation notes
Record when you installed, updated, removed, or reconfigured programs. - Daily work journal
Keep a simple timeline of tasks completed throughout the day. - Phone or support call notes
Log when a call started, who you spoke with, and what was discussed. - System maintenance history
Track driver updates, Windows updates, restarts, cleanup tasks, and error messages. - Home or office checklists
Create a dated record for inspections, backups, inventory checks, or routine tasks.
Tips for Better Logs
Use Clear Entry Titles
Instead of writing long paragraphs with no structure, add short labels:
Code:
9:10 AM 5/28/2026
Issue: Wi-Fi disconnects after sleep.
9:25 AM 5/28/2026
Action: Updated wireless adapter driver.
Keep One Log per Topic
Rather than placing everything in one giant file, create separate logs such as:
Code:
NetworkLog.txt
PrinterLog.txt
WindowsUpdateLog.txt
ClientCallLog.txt
Save Logs Somewhere Easy to Back Up
Good locations include:- Documents
- OneDrive
- A project folder
- A shared support folder, if appropriate for your environment
Warning: Avoid storing sensitive passwords, license keys, personal information, or confidential business data in plain text Notepad files. Standard.txtand.logfiles are not encrypted.
Use Ctrl + S Often
Notepad files are simple and fast, but you should still save regularly. Press Ctrl + S after adding important entries.Troubleshooting
The Timestamp Does Not Appear Automatically
Check the following:- Is
.LOGon the very first line? - Is it typed exactly as
.LOG? - Did you save and close the file before reopening it?
- Are there spaces or blank lines before
.LOG? - Are you opening the saved file, not an unsaved Notepad tab?
.LOGSave it, close it, and reopen it.
F5 Does Not Insert the Date and Time
Try these fixes:- Click inside the Notepad editing area first.
- Try Fn + F5 on a laptop.
- Check whether your keyboard has Fn Lock enabled.
- Make sure another app or keyboard utility is not intercepting the F5 key.
My .log File Became .log.txt
This usually happens when saving with Notepad’s default text file setting.To save with a true
.log extension:- Select File > Save As.
- Type the full file name, such as
Maintenance.log. - Change Save as type to All files.
- Click Save.
Conclusion
Notepad’s.LOG and F5 timestamp features are simple, fast, and built into Windows 10 and Windows 11. They are ideal when you need a quick dated record without setting up a database, spreadsheet, or dedicated note-taking app. With just a few keystrokes, you can create a reliable timeline of events, actions, and observations.Key Takeaways:
- Type
.LOGon the first line of a Notepad file to create an automatic timestamp log. - Reopening the saved file adds the current date and time near the end of the log.
- Press F5 in Notepad to insert a timestamp manually at the cursor position.
- Use separate logs for different topics to stay organized.
- Avoid storing sensitive information in plain text log files.
This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.
Reference verification, not part of the article body: Microsoft Support documents that Notepad applies to Windows 10 and Windows 11 and that placing
.LOG on the first line creates a log file that appends the current date and time when opened. (support.microsoft.com)References
- Official source: support.microsoft.com
Help in Notepad - Microsoft Support
Get answers to common questions about Notepad.
support.microsoft.com
- Official source: learn.microsoft.com
date
Reference article for the date command, which displays or sets the system date. If used without parameters,learn.microsoft.com - Official source: microsoft.com
Windows Shortcuts & Hotkeys for Organization | Microsoft Windows
Explore Windows 11 organization with Windows shortcuts and hotkeys. Windows shortcuts help you save time, speed up your workflow and navigate your screen faster.www.microsoft.com
- Official source: techcommunity.microsoft.com
Keep the current time stamp by creating a new .log file | Microsoft Community Hub
If you create a Notepad file which starts with .LOG, every time you launch it, it will log the current timestamp.
techcommunity.microsoft.com
- Official source: hs.windows.microsoft.com
- Related coverage: tech-recipes.com
- Official source: answers.microsoft.com
73 Keyboard Shortcuts in Windows - Microsoft Q&A
Hope someone finds this info helpful... From CNET and a Story by Nelson Aguilar & Matt Elliott To start, here are the Windows 11 hotkeys you'll probably use most often. **Ctrl + A:**Select all items in a window. Ctrl + Cor **Ctrl +…answers.microsoft.com - Related coverage: speakeasysolutions.com
- Related coverage: tutorialtactic.com
- Related coverage: lifecycle365.com
- Related coverage: sperrysoftware.com
- Related coverage: brcinstitute.com