Skip to content

Instantly share code, notes, and snippets.

@francois
Created November 5, 2008 21:59
Show Gist options
  • Save francois/22444 to your computer and use it in GitHub Desktop.
Save francois/22444 to your computer and use it in GitHub Desktop.
require "logger"
if ENV.include?("RAILS_ENV") && !Object.const_defined?("RAILS_DEFAULT_LOGGER")
Object.const_set("RAILS_DEFAULT_LOGGER", Logger.new(STDOUT))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment