warning_message="[DEPRECATION] The global method #{method.inspect} is deprecated, please raise a Github issue with this output. Called from: #{caller(1,stack_size).to_a}"
warn(warning_message)
# Additionally write to ~/.msf4/logs/framework.log - as this gets attached to Github issues etc
elog(warning_message)
end
# @deprecated In most scenarios you should delegate to either a framework module object, or Rex::Ui::Text::DispatcherShell etc
defprint_line(msg)
_warn_deprecation_message__method__
$stdout.puts(msg)
end
# @deprecated In most scenarios you should delegate to either a framework module object, or Rex::Ui::Text::DispatcherShell etc
defprint_warning(msg)
_warn_deprecation_message__method__
$stderr.puts(msg)
end
# @deprecated In most scenarios you should delegate to either a framework module object, or Rex::Ui::Text::DispatcherShell etc
defprint_good(msg)
_warn_deprecation_message__method__
$stdout.puts(msg)
end
# @deprecated In most scenarios you should delegate to either a framework module object, or Rex::Ui::Text::DispatcherShell etc