Module: LiveResource::LogHelper
- Included in:
- RedisClient, RemoteMethodDispatcher, Resource, ResourceProxy
- Defined in:
- lib/live_resource/log_helper.rb
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/live_resource/log_helper.rb', line 5 def logger if @logger.nil? @logger = Logger.new(STDERR) @logger.level = Logger::WARN end @logger end |
#logger=(logger) ⇒ Object
14 15 16 |
# File 'lib/live_resource/log_helper.rb', line 14 def logger=(logger) @logger = logger end |