{"comment":{"url":"https://api.github.com/repos/dezmathio/spaghetti_test/comments/14693398","html_url":"https://github.com/dezmathio/spaghetti_test/commit/c4671d0427d405f21d0a299c9d990047439b634d#commitcomment-14693398","id":14693398,"user":{"login":"bernabas","id":1497438,"avatar_url":"https://avatars.githubusercontent.com/u/1497438?v=3","gravatar_id":"","url":"https://api.github.com/users/bernabas","html_url":"https://github.com/bernabas","followers_url":"https://api.github.com/users/bernabas/followers","following_url":"https://api.github.com/users/bernabas/following{/other_user}","gists_url":"https://api.github.com/users/bernabas/gists{/gist_id}","starred_url":"https://api.github.com/users/bernabas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernabas/subscriptions","organizations_url":"https://api.github.com/users/bernabas/orgs","repos_url":"https://api.github.com/users/bernabas/repos","events_url":"https://api.github.com/users/bernabas/events{/privacy}","received_events_url":"https://api.github.com/users/bernabas/received_events","type":"User","site_admin":false},"position":67,"line":67,"path":"capy.rb","commit_id":"c4671d0427d405f21d0a299c9d990047439b634d","created_at":"2015-11-30T21:10:27Z","updated_at":"2015-11-30T21:10:27Z","body":"how about including \r\n    \r\n    require 'logger'\r\n\r\nthen have \r\n  \r\n    @logger = Logger.new(STDOUT)\r\n\r\nin your initializer, then instead of `puts`, you can just do\r\n\r\n    @logger.info \"blah blah\"\r\n\r\nit take care of it the time and stuff (most ruby systems including rails take advantage of this), you could also just give it a file, and it will have it for u (like a log file)\r\n"}}