L2Bot2.0/L2BotDll/Logger/OutputDebugLogChannel.h

19 lines
438 B
C++

#pragma once
#include <Windows.h>
#include "Domain/Logger/LogChannel.h"
using namespace L2Bot::Domain;
class OutputDebugLogChannel : public Logger::LogChannel
{
public:
OutputDebugLogChannel(const std::vector<Logger::LogLevel> levels) : Logger::LogChannel(levels) {};
virtual ~OutputDebugLogChannel() = default;
protected:
void DoSendToChannel(const std::wstring& logEntry) override
{
OutputDebugStringW(logEntry.c_str());
}
};