Sha256: 936cc9db4118f978c564e7eeae6b732302736f3b4cc7858c3041ef0076468c1a

Contents?: true

Size: 458 Bytes

Versions: 20

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Utils
    # @api private
    module StdoutAndLoggerMessage
      def self.warning(message, logger = Appsignal.internal_logger)
        Kernel.warn "appsignal WARNING: #{message}"
        logger.warn message
      end

      def stdout_and_logger_warning(message, logger = Appsignal.internal_logger)
        Appsignal::Utils::StdoutAndLoggerMessage.warning(message, logger)
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
appsignal-3.10.0-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.10.0 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.9.3-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.9.3 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.9.2-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.9.2 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.9.1-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.9.1 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.9.0-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.9.0 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.8.1-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.8.1 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.8.0-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.8.0 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.7.6-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.7.6 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.7.2-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.7.2 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.7.1-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-3.7.1 lib/appsignal/utils/stdout_and_logger_message.rb