2
* Win32DebugAppender.cpp
4
* Copyright 2002, the Log4cpp project.
6
* See the COPYING file for the terms of usage and distribution.
9
#ifdef WIN32 // only available on Win32
11
#include "PortabilityImpl.hh"
12
#ifdef LOG4SHIB_HAVE_IO_H
20
#include "log4shib/Category.hh"
21
#include "log4shib/Win32DebugAppender.hh"
25
Win32DebugAppender::Win32DebugAppender(const std::string& name) :
26
LayoutAppender(name) {
29
Win32DebugAppender::~Win32DebugAppender() {
33
void Win32DebugAppender::close() {
36
void Win32DebugAppender::_append(const LoggingEvent& event) {
37
std::string message(_getLayout().format(event));
38
::OutputDebugString(message.c_str());