39 message =
VGETTEXT(
"$elem has been deprecated indefinitely.", msg_params);
45 msg_params[
"version"] = version.
str();
46 message =
VGETTEXT(
"$elem has been deprecated and may be removed in version $version.", msg_params);
48 message =
VGETTEXT(
"$elem has been deprecated and may be removed at any time.", msg_params);
54 msg_params[
"version"] = version.
str();
55 message =
VGETTEXT(
"$elem has been deprecated and will be removed in version $version.", msg_params);
60 message =
VGETTEXT(
"$elem has been deprecated and removed.", msg_params);
68 std::string
msg =
VGETTEXT(
"Invalid deprecation level $level (should be 1-4)", err_params);
bool dont_log(const log_domain &domain) const
Represents version numbers.
std::string str() const
Serializes the version number into string form.
std::string deprecated_message(const std::string &elem_name, DEP_LEVEL level, const version_info &version, const std::string &detail)
static lg::log_domain log_deprecate("deprecation", lg::severity::LG_ERROR)
DEP_LEVEL
See https://wiki.wesnoth.org/CompatibilityStandards for more info.
Interfaces for manipulating version numbers of engine, add-ons, etc.
Standard logging facilities (interface).
#define FORCE_LOG_TO(logger, domain)
#define LOG_STREAM(level, domain)
const version_info wesnoth_version(VERSION)
std::stringstream & log_to_chat()
Use this to show WML errors in the ingame chat.
std::map< std::string, t_string > string_map
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")