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
@@ -11,6 +11,9 @@ class ConOutSink : public ILogSink
public: public:
virtual void receiveLog(LogType type, std::string_view loggerName, std::string_view msg) override 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) << "[" std::cout << "[" << loggerName << "] " << seallib::getLogTypeColor(type) << "["
<< seallib::getLogTypeName(type) << "]" << seallib::getLogTypeName(type) << "]"
<< "\x1b[0m " << msg << std::endl; << "\x1b[0m " << msg << std::endl;
+1 -1
View File
@@ -2,7 +2,7 @@
#include "tray-icon.h" #include "tray-icon.h"
#include "utils.h" #include "utils.h"
#include "spoofer.h" #include "spoofer.h"
#include "log-sink.h" #include "log-sink-cout.h"
#include "proxy-configurator.h" #include "proxy-configurator.h"
#include "cache-cleaner.h" #include "cache-cleaner.h"
+1 -1
View File
@@ -1,7 +1,7 @@
#include "proxy-configurator.h" #include "proxy-configurator.h"
#include "win-platform.h" #include "win-platform.h"
#include "log-sink.h" #include "log-sink-cout.h"
#include <minwinbase.h> #include <minwinbase.h>
#include <wininet.h> #include <wininet.h>
+1 -1
View File
@@ -1,6 +1,6 @@
#include "spoofer.h" #include "spoofer.h"
#include "utils.h" #include "utils.h"
#include "log-sink.h" #include "log-sink-cout.h"
#include <regex> #include <regex>
#include <map> #include <map>