Route all logging through the Void::Log facade

Delete the echoion Logger adapter (Logger.{hpp,cpp}) and the
ILogger/LoggerRegistry indirection. Core::installLogging() builds the
console + split-file Void::Logging::MultiLogger and installs it as the
process-wide Void::Log sink via Void::Log::make_sink (logSink_ owns it for
the process lifetime). The ~450 ECHOION_LOG_* call sites across EchoionCore
are rewritten to Void::Log::<level>("<Subsystem>", "{}", <expr>) with
per-file module tags (warning->warn, critical->fatal); the pre-formatted
message is passed as the single "{}" argument. Build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 4.8 committed 2026-06-23 14:10:06 +03:00
1 parent 0e08ccaefa
commit 2d7651c308
42 files changed
+550 -792

No files matched your search

+6 -6
View File
@@ -1,4 +1,4 @@
#include "echoion/core/Logger.hpp"
#include <Void/Log/Log.hpp>
#include "echoion/core/SessionManager.hpp"
#include <format>
#include <iomanip>
@@ -15,7 +15,7 @@ namespace Echoion::Core
bool SessionManager::initialize()
{
running_ = true;
ECHOION_LOG_INFO(std::format(
Void::Log::info("SessionManager", "{}", std::format(
"SessionManager initialized: max {} sessions, timeout {}s",
config_.maxSessions, config_.sessionTimeout.count()));
return true;
@@ -26,7 +26,7 @@ namespace Echoion::Core
running_ = false;
std::lock_guard<std::mutex> lock(mutex_);
sessions_.clear();
ECHOION_LOG_INFO("SessionManager shut down");
Void::Log::info("SessionManager", "{}", "SessionManager shut down");
}
std::string SessionManager::createSession(uint64_t clientId)
@@ -35,7 +35,7 @@ namespace Echoion::Core
// Check capacity
if (sessions_.size() >= config_.maxSessions) {
ECHOION_LOG_WARNING(
Void::Log::warn("SessionManager", "{}",
"Session capacity reached, rejecting new session");
return "";
}
@@ -52,7 +52,7 @@ namespace Echoion::Core
sessions_[token] = std::move(session);
ECHOION_LOG_INFO(
Void::Log::info("SessionManager", "{}",
std::format("Created session for client {}", clientId));
return token;
}
@@ -172,7 +172,7 @@ namespace Echoion::Core
}
if (cleaned > 0) {
ECHOION_LOG_INFO(
Void::Log::info("SessionManager", "{}",
std::format("Cleaned up {} expired sessions", cleaned));
}