A naive shell script to monitor the development log:
while true; do
inotifywait -q log/development.log
This is suboptimal because Rails modifies the log file many times during the processing of a request. The monitoring program should be smart enough to run post_params only when the file has been left alone for a few seconds.
It wasn't working for me with Rails 3.2.x
echo $(grep -e "Started \(GET\|POST\|PUT\)" log/development.log | tail -1)
grep -e "Parameters:" log/development.log | tail -1 | sed "s|Parameters:\s||" | ruby -ne 'require "pp"; pp eval($_)'