Simple search for erros on log files
Using 3 lines before and 5 lines after the context:
grep -B 3 -A 5 error log/file.log
Or using 10 lines for context:
grep -C 10 error log/production.log
Written by João Lucas Pereira de Santana
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Logs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#