21 #define WRN_CONFIG LOG_STREAM(warn, log_config_pn)
34 std::string tmp(str.
begin(), str.
end());
38 message.set_attr_dup(
"message", tmp.c_str());
const char * begin() const
Standard logging facilities (interface).
void chat_message(const std::string &caption, const std::string &msg)
Displays a message in the chat window.
void truncate_as_ucs4(std::string &str, const std::size_t size)
Truncates a UTF-8 string to the specified number of characters.
void truncate_message(const simple_wml::string_span &str, simple_wml::node &message)
Function to ensure a text message is within the allowed length.
const std::size_t max_message_length
lg::log_domain log_config_pn("config")