I use notepad++, simple text file, with one macro recorded:
- Ctrl+End (goes to end of file)
- New line
- New line
- Left bracket
- Edit > Insert > Date time (custom)
- Right bracket
- New line
The macro is assigned to my F5 key, everytime I press it, the sequence is triggered.
In my file, it will more or less look like this:
[...previous log entry...]
[2022-10-28 12:48:31]
- wrote comment about my time macro in notepad++ on HN