I'm engaged in a handful web-development projects running on a LAMP stack. My present tool-set for inspecting and bugfixing is:
- the softwares built-in log-viewer and the like, and
- running "sudo tail -f /var/log/apache2/error.log" from the command-line, and
- "sudo tail -f /var/log/apache2/access.log"
That's pretty much what I've done on the server-side. I'm new to inspecting the server-side, so I'm quite happy with this minimal setup. Setting up scripts to automate things a bit is definitely a next action for me.
My question is: What tools (CLI/GUI) or command-line commands do you use to keep track, inspect and manage your log-files on your LAMP stack?
Logcheck is a good way of monitoring production systems. You configure it to ignore the "normal" log messages, and it emails you everything else every hour.
However, because it doesn't alert you to messages as they appear, it may not be so useful in a development situation where you are in a code-run-debug loop.
Splunk is amazing for monitoring production environments.
I've never really attempted to use it for development however - seems a bit unwieldy.
http://www.splunk.com/
You can use MultiTail as a way to inspect one or more log files, and use its highlighting/filtering with regular expressions features to make sure that what you are looking for will always pop up.