Sha256: 8d16982aceb70eb88f5f48be68560b0b37dcd017b15add53ba777451793489af

Contents?: true

Size: 439 Bytes

Versions: 56

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Utils
    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

56 entries across 56 versions & 1 rubygems

Version Path
appsignal-4.2.0-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.2.0 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.1.3-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.1.3 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.1.2-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.1.2 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.1.1-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.1.1 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.1.0-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.1.0 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.9-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.9 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.8-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.8 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.7-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.7 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.6-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.6 lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.5-java lib/appsignal/utils/stdout_and_logger_message.rb
appsignal-4.0.5 lib/appsignal/utils/stdout_and_logger_message.rb