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

+14
View File
@@ -16,9 +16,15 @@
#include <Types.hpp>
#include <Void/Service/Registry.hpp>
#include <atomic>
#include <memory>
#include <mutex>
#include <thread>
namespace Void::Logging
{
class MultiLogger;
}
namespace Echoion::Core
{
@@ -154,6 +160,10 @@ namespace Echoion::Core
void setupRpcHandlers();
void setupEventBusSubscriptions() noexcept;
// Build the console + split-file logging stack and install it as
// the global Void::Log sink (logSink_ must outlive logging).
void installLogging();
// Components
std::shared_ptr<NetworkClient> networkClient_;
std::shared_ptr<MusicManager> musicManager_;
@@ -197,6 +207,10 @@ namespace Echoion::Core
// (replaces the former ConfigManager singleton).
Api::ConfigManager configManager_;
// Owns the logging stack installed as the global Void::Log sink;
// must outlive any logging (i.e. the whole process).
std::shared_ptr<Void::Logging::MultiLogger> logSink_;
public:
// Access the service registry (composition root).