NewPrint/PrintClient/include/plog/Appenders/DebugOutputAppender.h
2024-03-05 11:19:31 +08:00

17 lines
336 B
C++

#pragma once
#include <plog/Appenders/IAppender.h>
#include <plog/WinApi.h>
namespace plog
{
template<class Formatter>
class DebugOutputAppender : public IAppender
{
public:
virtual void write(const Record& record)
{
OutputDebugStringW(Formatter::format(record).c_str());
}
};
}