Module: Torrentz::Logger

Included in:
Torrentz, Fetch, Fetch::Simple
Defined in:
lib/torrentz/logger.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



5
6
7
# File 'lib/torrentz/logger.rb', line 5

def logger
  @@logger ||= ::Logger.new($stdout)
end

#logger=(logger) ⇒ Object



9
10
11
# File 'lib/torrentz/logger.rb', line 9

def logger=(logger)
  @@logger = logger
end