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
+3
-3
@@ -1,4 +1,4 @@
|
||||
#include "echoion/core/Logger.hpp"
|
||||
#include <Void/Log/Log.hpp>
|
||||
#include <MemoryPool.hpp>
|
||||
#include <format>
|
||||
#include <vector>
|
||||
@@ -27,7 +27,7 @@ namespace Echoion::Api
|
||||
}
|
||||
} // buffers returned to the pool here
|
||||
|
||||
ECHOION_LOG_INFO(std::format(
|
||||
Void::Log::info("MemoryPool", "{}", std::format(
|
||||
"AudioBufferPool initialized: {} buffers of {} samples (~{} KB)",
|
||||
poolSize, bufferSize,
|
||||
(bufferSize * poolSize * sizeof(int16_t)) / 1024));
|
||||
@@ -36,7 +36,7 @@ namespace Echoion::Api
|
||||
void AudioBufferPool::shutdown()
|
||||
{
|
||||
pool_.reset();
|
||||
ECHOION_LOG_INFO("AudioBufferPool shutdown");
|
||||
Void::Log::info("MemoryPool", "{}", "AudioBufferPool shutdown");
|
||||
}
|
||||
|
||||
AudioSampleBuffer AudioBufferPool::acquireBuffer()
|
||||
|
||||
Reference in new issue
Block a user