README.md in stackify-api-ruby-1.0.7 vs README.md in stackify-api-ruby-1.0.8
- old
+ new
@@ -69,11 +69,11 @@
Rails.logger.info "Some log message"
If you want to redefine <b>logger</b>, you should add
- config.logger = ::Stackify::LoggerProxy.new(ActiveSupport::Logger.new(File.join(Rails.root, 'log', "#{Rails.env}.log")))
+ config.logger = ::Stackify::LoggerProxy.new(ActiveSupport::Logger.new(Rails.root.join('log', "#{Rails.env}.log")))
to your config/environments/%environment%. <b>Note:</b> in this case Stackify#config.log_level will affect entire system.
### Non-Rails
@@ -127,10 +127,10 @@
## Troubleshooting
If there are problems, you can enable internal logging of the stackify-api-ruby project. Uncomment out the config.logger and config.logger.level lines in the 'config/initializers/stackify.rb' file:
```
-config.logger = Logger.new(File.join(Rails.root, "log", "stackify.log"))
+config.logger = Logger.new(Rails.root.join("log", "stackify.log"))
config.logger.level = Logger::DEBUG
```
## License