Created
December 20, 2011 22:22
-
-
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.
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 -f log/development.log | grep DEBUG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.