Class: Gitlab::QA::Runtime::Logger

Inherits:
Object
  • Object
show all
Extended by:
SingleForwardable
Defined in:
lib/gitlab/qa/runtime/logger.rb

Class Method Summary collapse

Class Method Details

.loggerObject



14
15
16
17
18
19
20
21
# File 'lib/gitlab/qa/runtime/logger.rb', line 14

def self.logger
  @logger ||= begin
    log_path = Env.log_path
    ::FileUtils.mkdir_p(log_path)

    TestLogger.logger(level: Env.log_level, path: log_path)
  end
end