How to debug ruby on rails using log file

Just add following function to print something in log file.

 logger.info ">>>>>>>>>print something<<<<<<<" 

P.S.
If you are in development environment , tail log/development.log file

 tail -f log/development.log 

Leave a Comment