Sha256: 489f064049d4b800c4089273d6d6c83d01a0be5c28cf9ef817f0fbf59705a062

Contents?: true

Size: 551 Bytes

Versions: 7

Compression:

Stored size: 551 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.

# 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

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-8.9.0 lib/new_relic/agent/null_logger.rb
newrelic_rpm-8.8.0 lib/new_relic/agent/null_logger.rb
newrelic_rpm-8.7.0 lib/new_relic/agent/null_logger.rb
newrelic_rpm-8.6.0 lib/new_relic/agent/null_logger.rb
newrelic_rpm-8.5.0 lib/new_relic/agent/null_logger.rb
newrelic_rpm-8.4.0 lib/new_relic/agent/null_logger.rb
newrelic_rpm-8.3.0 lib/new_relic/agent/null_logger.rb