Skip to content

Instantly share code, notes, and snippets.

@stevepop
Forked from jakebathman/logslaravel.sh
Created August 20, 2018 16:17
Show Gist options
  • Save stevepop/6a329f4e8e03fb76c115ec4540cb9647 to your computer and use it in GitHub Desktop.
Save stevepop/6a329f4e8e03fb76c115ec4540cb9647 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