Module: Twitterscraper

Defined in:
lib/version.rb,
lib/twitterscraper.rb,
lib/twitterscraper/cli.rb,
lib/twitterscraper/http.rb,
lib/twitterscraper/lang.rb,
lib/twitterscraper/type.rb,
lib/twitterscraper/cache.rb,
lib/twitterscraper/proxy.rb,
lib/twitterscraper/query.rb,
lib/twitterscraper/tweet.rb,
lib/twitterscraper/client.rb,
lib/twitterscraper/logger.rb,
lib/twitterscraper/template.rb

Defined Under Namespace

Modules: Http, Logger, Proxy, Query Classes: Cache, Cli, Client, Error, Lang, Template, Tweet, Type

Constant Summary collapse

VERSION =
'0.20.1'

Class Method Summary collapse

Class Method Details

.loggerObject



16
17
18
# File 'lib/twitterscraper.rb', line 16

def self.logger
  @logger ||= ::Logger.new(STDOUT, level: ::Logger::INFO)
end

.logger=(logger) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/twitterscraper.rb', line 20

def self.logger=(logger)
  if logger.nil?
    self.logger.level = ::Logger::FATAL
    return self.logger
  end

  @logger = logger
end