Filter Rails log by IP

26 Jun

Here’s a snippet of code for a Rake task that will filter your Rails log by IP address, so you can quickly follow a single user’s session.

Run it with rake log:for IP=10.20.30.40

Comments are closed.