Skip to content

Instantly share code, notes, and snippets.

@knightq
Created January 17, 2013 15:05
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 knightq/4556556 to your computer and use it in GitHub Desktop.
Save knightq/4556556 to your computer and use it in GitHub Desktop.
How to enable Rails 2.3 logs from script/console.
ActiveRecord::Base.connection.instance_variable_set :@logger, Logger.new(STDOUT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment