Placeholder page for when I track down the person that knows how to do this.It looks like there are several methodologies for "tailing" on Windows. This question was first asked on sakai-dev. A summary of responses follows:
Original question
No Format |
---|
Carol Dippel:
Does anyone know how to set-up WinXP to do the equivalent of tailing a log?
For example, I have Sakai running on a laptop and want to use Windows cmd
(or something else) to watch catalina.out during test execution. I've heard
this is possible but haven't found anyone who has successfully done it yet.
Data is currently written to catalina.out ONLY upon Tomcat startup
(catalina.bat start). No other activity is being written to that log. So I
need to know 2 things:
- How to get Sakai event activity to write to catalina.out?
- How to tail catalina.out?
|
Suggestions for tail software
No Format |
---|
Andrew Poland:
I think Tomcat 5 will write logs to catalina.out if you install it as an NT service.
The GUI installer should do this for you or refer to this doc:
http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html
|
No Format |
---|
Mark Norton:
I don't have my notes with me at the moment (being out of the country),
but I believe that if you use the "catalina" command instead of "startup",
Tomcat's output will be written to the current window, which means you can
re-direct it to a file. You need to give a start option, however.
Shutdown is a bit different, too. I have used this to capture tomcat logs
before.
---------
Chuck Severance responds:
This does work but you only retain the window's scroll buffer cause it is
not going to disk.
This great and quite convienent for quick stuff where you want to watch
without storing the whole log..
|