Module: Appsignal::Utils::DeprecationMessage

Included in:
Config, EventFormatter, Helpers::Instrumentation
Defined in:
lib/appsignal/utils/deprecation_message.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.message(message, logger = Appsignal.logger) ⇒ Object



4
5
6
7
# File 'lib/appsignal/utils/deprecation_message.rb', line 4

def self.message(message, logger = Appsignal.logger)
  Kernel.warn "appsignal WARNING: #{message}"
  logger.warn message
end

Instance Method Details

#deprecation_message(message, logger = Appsignal.logger) ⇒ Object



9
10
11
# File 'lib/appsignal/utils/deprecation_message.rb', line 9

def deprecation_message(message, logger = Appsignal.logger)
  Appsignal::Utils::DeprecationMessage.message(message, logger)
end