Logger api
VoidLoader/VoidLoaderCore/pipeline/head There was a failure building this commit

Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2025-10-19 23:18:07 +03:00
1 parent c9711dc5fd
commit de538e00b6
19 files changed
+579 -10

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <Logging/Sink.hpp>
#include <memory>
namespace vl::logging {
class CombinedSink final : public Sink {
public:
CombinedSink(std::shared_ptr<Sink> a, std::shared_ptr<Sink> b)
: a_(std::move(a)), b_(std::move(b)) {}
void write(const Message& msg) override {
a_->write(msg);
b_->write(msg);
}
private:
std::shared_ptr<Sink> a_, b_;
};
} // namespace vl::log