Created
July 27, 2015 01:25
-
-
Save mrchimp/821d33f8d8db9d63fe3d to your computer and use it in GitHub Desktop.
Read PHP fatal errors out loud in real time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tail --lines=0 -f /var/log/apache2/error.log \ | |
| | grep --line-buffered -F "PHP Fatal error" \ | |
| | sed -u -e 's/\[[^]]*\]//g' \ | |
| | while read line ; do say $line; echo $line ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment