mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-05-01 07:49:32 -05:00
logger: make thread safe, use std::string_view with std::println
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
#include <os/logger.h>
|
||||
#include <os/logger_detail.h>
|
||||
|
||||
void os::logger::Log(const std::string& str, detail::ELogType type, const char* func)
|
||||
void os::logger::Init()
|
||||
{
|
||||
detail::Init();
|
||||
}
|
||||
|
||||
void os::logger::Log(const std::string_view str, detail::ELogType type, const char* func)
|
||||
{
|
||||
detail::Log(str, type, func);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user