Module: Appsignal::Utils::StdoutAndLoggerMessage Private

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

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



7
8
9
10
# File 'lib/appsignal/utils/stdout_and_logger_message.rb', line 7

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

Instance Method Details

#stdout_and_logger_warning(message, logger = Appsignal.internal_logger) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



12
13
14
# File 'lib/appsignal/utils/stdout_and_logger_message.rb', line 12

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