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

@@ -1,7 +1,7 @@
#pragma once
#include "Command.hpp"
#include "echoion/core/Logger.hpp"
#include <Void/Log/Log.hpp>
#include <format>
namespace Echoion::Core
@@ -31,7 +31,7 @@ namespace Echoion::Core
if (ctx.args.find("http") == 0) {
auto result = manager->play(ctx.args, ctx.clientId);
if (!result) {
ECHOION_LOG_ERROR(
Void::Log::error("PlayCommand", "{}",
std::format("Play URL failed '{}': {}",
ctx.args, result.error().message));
@@ -60,7 +60,7 @@ namespace Echoion::Core
// Otherwise, treat as search query
auto searchResult = manager->search(ctx.args);
if (!searchResult) {
ECHOION_LOG_ERROR(
Void::Log::error("PlayCommand", "{}",
std::format("Search failed for '{}': {}", ctx.args,
searchResult.error().message));
@@ -85,7 +85,7 @@ namespace Echoion::Core
auto playResult =
manager->queueTrack(track, ctx.clientId);
if (!playResult) {
ECHOION_LOG_ERROR(
Void::Log::error("PlayCommand", "{}",
std::format("Queue failed: {}",
playResult.error().message));
ctx.reply(
@@ -141,7 +141,7 @@ namespace Echoion::Core
ctx.reply(msg);
} catch (const std::exception& e) {
ECHOION_LOG_ERROR(
Void::Log::error("PlayCommand", "{}",
std::format("Play command exception: {}", e.what()));
ctx.reply("Something went wrong while trying to play. "
"Please try again.");