Sha256: 56a97f28e78d814fd4766e5d1bad8d12abcc87a1fc4e9f7b29f6b89da031d2fb

Contents?: true

Size: 534 Bytes

Versions: 50

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'
require 'fileutils'

module Gitlab
  module QA
    module Runtime
      class Logger
        extend SingleForwardable

        def_delegators :logger, :debug, :info, :warn, :error, :fatal, :unknown

        def self.logger
          @logger ||= begin
            log_path = Env.log_path
            ::FileUtils.mkdir_p(log_path) unless File.exist?(log_path)

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

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
gitlab-qa-10.3.0.1 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-11.3.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-11.2.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-11.1.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-11.0.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.6.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.5.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.4.1 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.4.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.3.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.2.2 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.2.1 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.2.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.1.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-10.0.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-9.1.2 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-9.1.1 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-9.1.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-9.0.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-8.15.3 lib/gitlab/qa/runtime/logger.rb