feat: add cout sink for test

This commit is contained in:
2026-05-12 18:14:04 -03:00
parent 8ee416294c
commit 24ac0d8a8f
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include <seallib/log.h>
#include <iostream>
using namespace seallib;
class ConOutSink : public ILogSink
{
public:
virtual void receiveLog(LogType type, std::string_view loggerName, std::string_view msg) override
{
std::cout << "[" << loggerName << "] " << seallib::getLogTypeColor(type) << "["
<< seallib::getLogTypeName(type) << "]"
<< "\x1b[0m " << msg << std::endl;
}
};