I am debugging a new application that is crashing. I want to watch the messages as they are being written to the log. What command should I use?
+10
A:
If you're on a unixy system and your log is a file, you want tail -f <filename>
.
If you're on a Windows system, there are ports of tail
available (hat tip - Dave Webb).
Dominic Rodger
2009-08-13 16:14:20
thanks Dominic.
Kombucha
2009-08-13 16:15:59
There are various ports of tail available for Windows systems. For example - http://gnuwin32.sourceforge.net/packages/coreutils.htm
Dave Webb
2009-08-13 16:27:32
Similarly, I've had great luck on Windows with http://www.baremetalsoft.com/baretail/
JeffH
2009-08-13 17:08:15
A:
If you prefer GUI tools, jEdit has a Log Viewer plugin that may do what you need.
Andy Balaam
2009-08-13 16:16:36
A:
To add to Dominic's answer, if you're on a Windowsy system, you can get Cygwin32, which will give you a tail command for Windows. (And a bunch of other good stuff...)
Aric TenEyck
2009-08-13 16:20:07
+1
A:
If you are on Mac OS X, run Console (in /Applications/Utilities). It is a nice GUI for viewing and searching logs.
MtnViewMark
2009-08-13 17:15:36
A:
Install cygwin and utilities on Windows and run
tail -f ./logfile
Cygwin gives you a unix like interface on Windows and provides you with most of the utilities as present on unix
Devil Jin
2009-08-18 18:16:34