Module: TestBoosters::Logger

Defined in:
lib/test_boosters/logger.rb

Class Method Summary collapse

Class Method Details

.error(message) ⇒ Object



12
13
14
15
16
# File 'lib/test_boosters/logger.rb', line 12

def error(message)
  error_log_path = ENV["ERROR_LOG_PATH"] || "#{ENV["HOME"]}/test_booster_error.log"

  File.open(error_log_path, "a") { |file| file.write("#{message}\n") }
end

.info(message) ⇒ Object

TODO: why are we logging info messages into the error log?



6
7
8
9
10
# File 'lib/test_boosters/logger.rb', line 6

def info(message)
  error_log_path = ENV["ERROR_LOG_PATH"] || "#{ENV["HOME"]}/test_booster_error.log"

  File.open(error_log_path, "a") { |file| file.write("#{message}\n") }
end