Module: Crosstest::Core::Logger

Defined in:
lib/crosstest/core/logger.rb

Instance Method Summary collapse

Instance Method Details

#log_level=(level) ⇒ Object



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

def log_level=(level)
  logger.level = level
end

#loggerObject



6
7
8
# File 'lib/crosstest/core/logger.rb', line 6

def logger
  @logger ||= new_logger
end

#new_logger(_io = $stdout, _level = :debug) ⇒ Object



10
11
12
# File 'lib/crosstest/core/logger.rb', line 10

def new_logger(_io = $stdout, _level = :debug)
  ::Logger.new(STDOUT)
end