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:
1 parent
0e08ccaefa
commit
2d7651c308
42 files changed
+550
-792
No files matched your search
+6
-6
@@ -1,5 +1,5 @@
|
||||
#include <Database.hpp>
|
||||
#include "echoion/core/Logger.hpp"
|
||||
#include <Void/Log/Log.hpp>
|
||||
#include <Void/Math/Random.hpp>
|
||||
#include <Void/Sqlite/Sqlite.hpp>
|
||||
#include <cstring>
|
||||
@@ -73,7 +73,7 @@ namespace Echoion::Api
|
||||
}
|
||||
|
||||
impl_->initialized = true;
|
||||
ECHOION_LOG_INFO(std::format("Database initialized: {}", config.path));
|
||||
Void::Log::info("Database", "{}", std::format("Database initialized: {}", config.path));
|
||||
return {};
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ namespace Echoion::Api
|
||||
"INSERT INTO schema_migrations (version) VALUES (1)",
|
||||
nullptr, nullptr, nullptr);
|
||||
|
||||
ECHOION_LOG_INFO("Database migration 1 applied");
|
||||
Void::Log::info("Database", "{}", "Database migration 1 applied");
|
||||
}
|
||||
|
||||
// Migration 2: Fix subscriptions table to use UID
|
||||
@@ -234,7 +234,7 @@ namespace Echoion::Api
|
||||
"INSERT INTO schema_migrations (version) VALUES (2)",
|
||||
nullptr, nullptr, nullptr);
|
||||
|
||||
ECHOION_LOG_INFO(
|
||||
Void::Log::info("Database", "{}",
|
||||
"Database migration 2 applied: subscriptions now use UID");
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ namespace Echoion::Api
|
||||
"INSERT INTO schema_migrations (version) VALUES (3)",
|
||||
nullptr, nullptr, nullptr);
|
||||
|
||||
ECHOION_LOG_INFO("Database migration 3 applied: playlists now "
|
||||
Void::Log::info("Database", "{}", "Database migration 3 applied: playlists now "
|
||||
"support external_id");
|
||||
}
|
||||
|
||||
@@ -296,7 +296,7 @@ namespace Echoion::Api
|
||||
"INSERT INTO schema_migrations (version) VALUES (4)",
|
||||
nullptr, nullptr, nullptr);
|
||||
|
||||
ECHOION_LOG_INFO(
|
||||
Void::Log::info("Database", "{}",
|
||||
"Database migration 4 applied: RPC tokens table added");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user