fmt::to_udec(), fmt::to_sdec()

This commit is contained in:
Nekotekina 2015-01-19 16:31:02 +03:00
parent 0d28f378a7
commit 3428499492
4 changed files with 66 additions and 21 deletions

View file

@ -237,16 +237,15 @@ LogChannel &LogManager::getChannel(LogType type)
}
void log_message(Log::LogType type, Log::LogSeverity sev, const char* text)
{
log_message(type, sev, std::string(text));
}
void log_message(Log::LogType type, Log::LogSeverity sev, std::string text)
{
//another msvc bug makes this not work, uncomment this and delete everything else in this function when it's fixed
//Log::LogManager::getInstance().log({logType, severity, text})
Log::LogMessage msg{ type, sev, text };
Log::LogManager::getInstance().log(msg);
}
void log_message(Log::LogType type, Log::LogSeverity sev, const std::string& text)
{
Log::LogMessage msg{ type, sev, text };
Log::LogMessage msg{ type, sev, std::move(text) };
Log::LogManager::getInstance().log(msg);
}