Class: TwitterWithAutoPagination::Logger
- Inherits:
-
Logger
- Object
- Logger
- TwitterWithAutoPagination::Logger
- Defined in:
- lib/twitter_with_auto_pagination/logger.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(options = {}) ⇒ Logger
Returns a new instance of Logger.
4 5 6 7 8 |
# File 'lib/twitter_with_auto_pagination/logger.rb', line 4 def initialize( = {}) Dir.mkdir('log') unless File.exists?('log') super('log/twitter.log') self.level = .has_key?(:log_level) ? .delete(:log_level) : :debug end |