class DeepTest::Logger

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/deep_test/logger.rb, line 3
def initialize(*args)
  super
  self.formatter = proc { |severity, time, progname, msg| "[DeepTest] #{msg}\n" }
  self.level = configured_log_level
end

Public Instance Methods

configured_log_level() click to toggle source
# File lib/deep_test/logger.rb, line 9
def configured_log_level
  if ENV['DEEP_TEST_LOG_LEVEL']
    Logger.const_get(ENV['DEEP_TEST_LOG_LEVEL'])
  else
    Logger::INFO
  end
end