Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add MAMP log files to MaxOSX Console

What are the commands for adding the MAMP Apache, PHP and MySQL error logs to the MacOSX Console?

Thanks!

like image 733
jerome Avatar asked Mar 23 '11 14:03

jerome


1 Answers

Similar to this question...

Console has a few standard locations where it will look for and index log files. The easiest thing you can do is add a symbolic link from the MAMP log files into one of the directories Console already uses, like ~/Library/Logs.

For example, my MAMP log files are located in /Applications/MAMP/logs. So I did:

cd ~/Library/Logs
ln -s /Applications/MAMP/logs/php_error.log .
ln -s /Applications/MAMP/logs/apache_access_log .

Hope that helps!

like image 158
fitzgeraldsteele Avatar answered Sep 25 '22 00:09

fitzgeraldsteele