Skip to content

Instantly share code, notes, and snippets.

@parkerl
Created December 20, 2011 22:22
Show Gist options
  • Save parkerl/1503556 to your computer and use it in GitHub Desktop.
Save parkerl/1503556 to your computer and use it in GitHub Desktop.
Here is a nice way to filter out debugging messages from a log file.
tail -f log/development.log | grep DEBUG
@parkerl
Copy link
Author

parkerl commented Dec 20, 2011

It can also be useful to see a few lines before and after the message. This example shows 5 lines before and after as set by the -5 argument.

tail -f log/development.log | grep -5 DEBUG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment