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>
42 lines
900 B
C++
42 lines
900 B
C++
#pragma once
|
|
|
|
#include "Command.hpp"
|
|
#include <Void/Log/Log.hpp>
|
|
#include <format>
|
|
|
|
namespace Echoion::Core
|
|
{
|
|
|
|
class ReloadCommand : public Command
|
|
{
|
|
public:
|
|
|
|
void execute(const CommandContext& ctx) override
|
|
{
|
|
// This is a placeholder - actual reload is handled by the
|
|
// plugin
|
|
Void::Log::info("ReloadCommand", "{}", "Reload requested by user");
|
|
ctx.reply("Reload is handled automatically by the plugin. Use "
|
|
"the TS3 plugin menu to reload the core.");
|
|
}
|
|
|
|
std::string_view getDescription() const override
|
|
{
|
|
return "Shows information about reloading the bot.";
|
|
}
|
|
|
|
CommandCategory getCategory() const override
|
|
{
|
|
return CommandCategory::Admin;
|
|
}
|
|
|
|
bool requiresAdmin() const override { return true; }
|
|
|
|
std::vector<std::string_view> getAliases() const override
|
|
{
|
|
return {"restart", "r"};
|
|
}
|
|
};
|
|
|
|
} // namespace Echoion::Core
|