logger: make thread safe, use std::string_view with std::println

This commit is contained in:
Hyper
2024-12-12 22:46:54 +00:00
parent e7d7431b58
commit 3e21a26f6a
5 changed files with 22 additions and 9 deletions
+6 -1
View File
@@ -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);
}