Skip to content

Instantly share code, notes, and snippets.

@coalwater
Last active August 29, 2015 14:19
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 coalwater/40b061b2d0adcc8b3c9d to your computer and use it in GitHub Desktop.
Save coalwater/40b061b2d0adcc8b3c9d to your computer and use it in GitHub Desktop.
Active Record logger examples
ActiveRecord::Base.logger.level = :debug
ActiveRecord::Base.logger.level = :info
ActiveRecord::Base.logger.level = :warn
ActiveRecord::Base.logger.level = :error
ActiveRecord::Base.logger.level = :fatal
ActiveRecord::Base.logger.level = :unknown
ActiveRecord::Base.logger.silence do
# do a lot of querys without noisy logs
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment