From 5b2250f3e0c674251076a9059eca0b3cc353fdda Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Wed, 18 Sep 2013 15:37:24 -0700 Subject: [PATCH] Add Rails 4 setup instructions --- README.rdoc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index 1fcbdac..170f7fa 100644 --- a/README.rdoc +++ b/README.rdoc @@ -23,11 +23,15 @@ The main thing hodel_3000_complaint_logger provides is the Hodel3000CompliantLog log.info("Program started") log.warn("Nothing to do!") -To use hodel_3000_complaint_logger in Rails 3 as a replacement for the default logger, place the following line in your application.rb: +To use hodel_3000_complaint_logger in Rails 4 as a replacement for the default logger, place the following line in your config/application.rb: + + config.logger = Hodel3000CompliantLogger.new(config.paths['log'].first) + +In Rails 3, use the following line instead (in config/application.rb): config.logger = Hodel3000CompliantLogger.new(config.paths.log.first) -In Rails 2, instead use the following in your environment.rb file: +In Rails 2, instead use the following in your config/environment.rb file: config.logger = Hodel3000CompliantLogger.new(config.paths.log.first)