const std::string& to std::string_view and static output buffer on Log

This commit is contained in:
2026-02-26 20:34:23 +02:00
parent 3d17902844
commit 4eb846f215
2 changed files with 14 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
#define GUARD_TOURMALINE_LOGGING_H
#include <array>
#include <fstream>
#include <string>
#include <string_view>
namespace Tourmaline::Systems {
class Logging {
@@ -25,8 +25,8 @@ public:
};
static void LogToFile(std::string File = "");
static void Log(const std::string &message,
const std::string &position = "Unknown",
static void Log(std::string_view message,
std::string_view position = "Unknown",
LogLevel severity = LogLevel::Info, bool assertion = true);
private: