Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watch tomcat log file in Windows

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.

like image 818
Renaud is Not Bill Gates Avatar asked Jan 24 '26 17:01

Renaud is Not Bill Gates


1 Answers

You have several options:

  1. Install Cygwin, Mingw64 or GNU Utilities and you will have "tail" command
  2. Use PowerShell and something like: Get-Content catalina.out -Wait

  3. Use external tool like Notepad++: https://www.raymond.cc/blog/monitor-log-or-text-file-changes-in-real-time-with-notepad/

like image 93
Planck Constant Avatar answered Jan 26 '26 05:01

Planck Constant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!