-
Enable PHP logging in MAMP Pro, under the PHP settings (screenshot)
-
Inside your MAMP
Sitesdirectory (or equivalent), create a new directorypimpmylog -
Create a new host, such as
phplog.local, in MAMP for easy access (screenshot) -
Open terminal or iTerm, navigate to this new directory
-
Run
git clone https://github.com/potsky/PimpMyLog.git . -
In your browser, go to the host URL (eg
http://phplog.local); Proceed to configuration wizard (screenshot) -
Since this is for local development, you can skip setting up an admin account (click "No")
-
Enable the PHP error log, which should be checked by default (screenshot)
-
Complete the Wizard
-
Optionally, you can enable browser notifications [recommended] (screenshot)
-
In your WordPress installation(s), if you are using
WP_DEBUG,WP_DEBUG_LOG,WP_DEBUG_DISPLAY(eg insidewp-config.php) remove these items; If these are defined WordPress will write the errors todebug.loginsidewp-contentinstead of writing to the global PHP error log -
Pour yourself a whiskey drink and enjoy easy access to your PHP logs!
Note: There seems to be a bug in Firefox 57 that causes very high CPU usage if you decline browser notifications; Enabling notifications or using Chrome/Safari resolves the issue
12.(before theandword) is the best part of the whole tutorial. Sorry, @jaredatch.