Class: FYT::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/fyt/base.rb

Overview

processes the Youtube feed

Direct Known Subclasses

Builder, Config, Parser, S3Storage, Storage

Constant Summary collapse

@@logger =
nil

Instance Method Summary collapse

Instance Method Details

#loggerObject



10
11
12
13
14
15
# File 'lib/fyt/base.rb', line 10

def logger
  @@logger ||= Logger.new(STDOUT).tap do |logger|
    logger.level = Logger::INFO
    logger.level = Logger::DEBUG if FYT::Config.new[:debug]
  end
end