For debugging purposes in a somewhat closed system, I have to output text to a file.
Does anyone know of a tool that runs on windows (console based or not) that detects changes to a file and outputs them in real-time?
- Go to: Settings → Preferences → MISC. → and here in the section "File Status Auto-Detection", make sure to select all three checkboxes ([✓] Enable, [✓] Update silently, [✓] Scroll to the last line after update). ...and you will see the file being updated in real time, as new log entries are written to it!
Open Log File. Click Plugins > Document Monitor > Start Monitoring.
I like tools that will perform more than one task, Notepad++ is a great notepad replacement and has a Document Monitor plugin (installs with standard msi) that works great. It also is portable so you can have it on a thumb drive for use anywhere.
For a command line option, PowerShell (which is really a new command line) has a great feature already mentioned.
Get-Content someFile.txt -wait
But you can also filter at the command line using a regular expression
Get-Content web.log -wait | where { $_ -match "ERROR" }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With