When I was working on Ubuntu, I used the following command to watch changes on catalina.out
:
tail -f /var/log/tomcat7/catalina.out
But now I changed to Windows, and I can't find how to do it.
Thanks in advance.
When I was working on Ubuntu, I used the following command to watch changes on catalina.out
:
tail -f /var/log/tomcat7/catalina.out
But now I changed to Windows, and I can't find how to do it.
Thanks in advance.
You have several options:
Use PowerShell and something like:
Get-Content catalina.out -Wait
Use external tool like Notepad++: https://www.raymond.cc/blog/monitor-log-or-text-file-changes-in-real-time-with-notepad/
You can use Notepad++. You can find the setting in Settings -> Preferences... -> MISC -> File Status Auto-Detection. Check all three boxes and the files will be updated on change and scrolled to the bottom.
Some of the editors like TextPad shows signal when there is any change in the file you opened through this tool. You can open your log using some of those editors and whenever Tomcat update the logs you can fetch the changes.