chore: rename log-sink to log-sink-cout

This commit is contained in:
2026-06-20 08:04:55 -03:00
parent df9ad4fc70
commit 064f1701ee
4 changed files with 6 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
#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
{
#ifndef _DEBUG
if (type == LogType::VERBOSE) return;
#endif
std::cout << "[" << loggerName << "] " << seallib::getLogTypeColor(type) << "["
<< seallib::getLogTypeName(type) << "]"
<< "\x1b[0m " << msg << std::endl;
}
};