Skip to content

Commit

Permalink
Add Rails 4 setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnall committed Sep 18, 2013
1 parent 04d847d commit 5b2250f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.rdoc
Expand Up @@ -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)

Expand Down

0 comments on commit 5b2250f

Please sign in to comment.