Sha256: 3e517fb341d5977ff2bac043a541d5442cf45cc9d8a203aa0fb3f6a6ba16ccd7

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

# A stub object that we can use in place of a real Logger instance when
# the agent is disabled.
module NewRelic
  module Agent
    class NullLogger
      def fatal(*args); end

      def error(*args); end

      def warn(*args); end

      def info(*args); end

      def debug(*args); end

      def method_missing(method, *args, &blk)
        nil
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newrelic_rpm-8.10.1 lib/new_relic/agent/null_logger.rb
newrelic_rpm-8.10.0 lib/new_relic/agent/null_logger.rb