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>
CommandManager dispatched async commands through a bespoke pool — a jthread
vector, a CommandTask queue, a mutex/condition_variable, and a manual
drain-on-shutdown loop. Replace it with a Void::Concurrency::ThreadPool:
- startThreadPool() builds the pool at THREAD_POOL_SIZE; shutdown() flips
the accept flag and resets the pool (~ThreadPool drains queued commands
then joins — the same shutdown semantics the manual loop had).
- dispatch() submits the CommandTask lambda straight to the pool instead of
enqueuing + notifying; executeCommandAsync already swallows exceptions, so
the discarded future is safe.
- processCommandQueue() and the queue/cv/worker members are gone.
Build green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The DI registry was write-only — populated in Core::initialize() but never
resolved through. Thread it into command execution so commands resolve
shared services by interface instead of constructing throwaways:
- CommandContext gains a non-owning ServiceRegistry* plus an ergonomic
service<I>() resolver.
- CommandManager carries the registry (Core::setServices(®istry_)) and
stamps it onto every CommandContext it builds (async + sync paths).
- RpcInfoCommand's getPublicIpAddress() now reuses the shared, initialized
INetworkClient from the registry, falling back to a throwaway client only
when none is registered.
Core itself (the composition root) keeps direct member wiring and commands
keep explicit MusicManager injection — converting those to a service locator
would only hide dependencies; the registry earns its keep at the genuine
seam where a command needs a service it isn't handed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>