cpp-demo-project/include/plog/Appenders/DebugOutputAppender.h

17 lines
384 B
C
Raw Permalink Normal View History

2024-01-22 12:05:59 +01:00
#pragma once
#include <plog/Appenders/IAppender.h>
#include <plog/WinApi.h>
namespace plog
{
template<class Formatter>
class PLOG_LINKAGE_HIDDEN DebugOutputAppender : public IAppender
{
public:
virtual void write(const Record& record) PLOG_OVERRIDE
{
OutputDebugStringW(util::toWide(Formatter::format(record)).c_str());
}
};
}