Module: Bucky::Utils::BuckyLogger

Constant Summary collapse

LogFileDir =
Bucky::Utils::Config.instance.data[:log_path]

Class Method Summary collapse

Class Method Details

.write(file_name, content) ⇒ Object

Write following logs

  • user opareation (e.g. test_sample_app_pc_e2e_1_1.log)

  • verification (e.g. test_sample_app_pc_e2e_1_1.log)

  • Error of Bucky core (bucky_error.log)

Parameters:

  • file_name (String)
  • or (String)
    Execption

    content



16
17
18
19
20
21
# File 'lib/bucky/utils/bucky_logger.rb', line 16

def write(file_name, content)
  puts "    #{content}"
  logger = Logger.new("#{LogFileDir}#{file_name}.log", 1)
  logger.info content
  logger.close
end