Class: Tumugi::Logger

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/tumugi/logger.rb

Instance Method Summary collapse

Constructor Details

#initializeLogger

Returns a new instance of Logger.



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

def initialize
  @logger = ::Logger.new(STDOUT)
  @logger.level = ::Logger::INFO
end

Instance Method Details

#quiet!Object



18
19
20
# File 'lib/tumugi/logger.rb', line 18

def quiet!
  @logger = ::Logger.new(nil)
end

#verbose!Object



14
15
16
# File 'lib/tumugi/logger.rb', line 14

def verbose!
  @logger.level = ::Logger::DEBUG
end