Skip to content

Instantly share code, notes, and snippets.

@Chun-Yang
Created May 29, 2014 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chun-Yang/50801ad1c38599d4386f to your computer and use it in GitHub Desktop.
Save Chun-Yang/50801ad1c38599d4386f to your computer and use it in GitHub Desktop.
ruby rails add log for rails
<snippet>
<content><![CDATA[
Rails.logger.info "$0"
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>log</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.ruby.rails, source.ruby</scope>
<description>Add Log For Rails</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment