Jun 05

Simple but effective regex to monitor when there are issues. In my example below, this will show all response times > 1 second:

 tail -f production.log | egrep "Completed in [0-9]{3,10}"

Tagged with:
Dec 06


MERB does not have development logging turned on by default something I like very much in Rails. To turn it on, uncomment this line:

c[:log_file]  = Merb.root / "log" / "development.log"

In the config/environments/development.rb file.

Tagged with: