Sha256: ff2f8fa62fecd6f455a35e765b5a89270f8b91ae7ee86f1084909f3bbad8e7cf

Contents?: true

Size: 174 Bytes

Versions: 11

Compression:

Stored size: 174 Bytes

Contents

module RestApiClient

  def self.logger
    @@logger ||= defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
  end

  def self.logger=(logger)
    @@logger = logger
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rest-api-client-0.1.11 lib/rest/api/client/logger.rb
rest-api-client-0.1.10 lib/rest/api/client/logger.rb
rest-api-client-0.1.9 lib/rest/api/client/logger.rb
rest-api-client-0.1.8 lib/rest/api/client/logger.rb
rest-api-client-0.1.7 lib/rest/api/client/logger.rb
rest-api-client-0.1.6 lib/rest/api/client/logger.rb
rest-api-client-0.1.5 lib/rest/api/client/logger.rb
rest-api-client-0.1.4 lib/rest/api/client/logger.rb
rest-api-client-0.1.3 lib/rest/api/client/logger.rb
rest-api-client-0.1.2 lib/rest/api/client/logger.rb
rest-api-client-0.1.1 lib/rest/api/client/logger.rb