fmt::format() optimization (fmt::unveil template)
This commit is contained in:
@@ -235,3 +235,18 @@ LogChannel &LogManager::getChannel(LogType type)
|
||||
{
|
||||
return mChannels[static_cast<u32>(type)];
|
||||
}
|
||||
|
||||
void log_message(Log::LogType type, Log::LogSeverity sev, const char* 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::LogManager::getInstance().log(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user