Module: Bucky::Utils::BuckyLogger
- Included in:
- Core::Exception::BuckyException, TestEquipment::Evidence::EvidenceGenerator, TestEquipment::UserOperation::UserOperator, TestEquipment::Verifications::E2eVerification
- Defined in:
- lib/bucky/utils/bucky_logger.rb
Constant Summary collapse
Class Method Summary collapse
-
.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).
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)
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 |