Logger api

Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2025-10-19 23:00:07 +03:00
1 parent 40b1f4609f
commit 053d1b7168
12 files changed
+286 -15

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include <string_view>
namespace vl::logging {
enum class Level : unsigned char { Trace, Debug, Info, Warn, Error };
constexpr std::string_view toString(Level lvl) noexcept {
switch (lvl) {
case Level::Trace: return "TRACE";
case Level::Debug: return "DEBUG";
case Level::Info: return "INFO";
case Level::Warn: return "WARN";
case Level::Error: return "ERROR";
}
return "UNKNOWN";
}
} // namespace vl::log