Skip to content

Instantly share code, notes, and snippets.

@lcdss
Forked from jakebathman/logslaravel.sh
Created August 23, 2018 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lcdss/35e43af73c45a9db437371b4e5c52d0a to your computer and use it in GitHub Desktop.
Save lcdss/35e43af73c45a9db437371b4e5c52d0a to your computer and use it in GitHub Desktop.
Tail Laravel logs and filter out the stack traces
tail -f -n 450 storage/logs/laravel*.log \
| grep -i -E \
"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \
--color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment