Welcome to mirror list, hosted at ThFree Co, Russian Federation.

logger.rb « runtime « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7e78ba470d8287903faf751d685118f9a4fe95b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module QA
  module Runtime
    class Logger
      class << self
        # Global logger instance
        #
        # @return [ActiveSupport::Logger]
        def logger
          @logger ||= Gitlab::QA::TestLogger.logger(
            level: Gitlab::QA::Runtime::Env.log_level,
            source: 'QA Tests',
            path: File.expand_path('../../tmp', __dir__)
          )
        end

        delegate :debug, :info, :warn, :error, :fatal, :unknown, to: :logger
      end
    end
  end
end