add logger
fix bugs
Merge pull request #1 from lyfeyaj/add_rails_logger

Add rails logger