feat: add logger
This commit is contained in:
19
L2BotDll/Logger/OutputDebugLogChannel.h
Normal file
19
L2BotDll/Logger/OutputDebugLogChannel.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#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((GetCurrentDateTime() + logEntry).c_str());
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user