Watch A Log And/or Search For A Certain Term
Join the DZone community and get the full member experience.Join For Free
If you're developing on a server that has all PHP errors turned off, you can still watch the error log (if you have access to this file). For example on a dreamhost account you could try this:
tail -f /home/account/logs/website.com/http/error.logAs the errors pour in, you will see them come by. Change 'account' to the username you have on dreamhost and website.com to the domainname you host there. If the errors come in large amounts you can filter them by using grep:
tail -f /home/account/logs/website.com/http/error.log | grep -i "search_term"Now only errors containing 'search_term' will be shown.
Opinions expressed by DZone contributors are their own.