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-8.3.2 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-8.3.1 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-8.3.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-8.2.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-8.1.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-8.0.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-7.36.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-7.35.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-7.34.0 lib/gitlab/qa/runtime/logger.rb
gitlab-qa-7.33.0 lib/gitlab/qa/runtime/logger.rb