00001
00002
00003
00004
00005
00006
00007
00008
#ifndef _LOG4CPP_WIN32DEBUGAPPENDER_HH
00009
#define _LOG4CPP_WIN32DEBUGAPPENDER_HH
00010
00011
#ifdef WIN32 // only use this on Win32
00012
00013
#include <string>
00014
#include "log4cpp/Export.hh"
00015
#include "log4cpp/LayoutAppender.hh"
00016
00017
namespace log4cpp {
00018
00025 class LOG4CPP_EXPORT Win32DebugAppender :
public LayoutAppender {
00026
public:
00031 Win32DebugAppender(
const std::string& name);
00035
virtual ~Win32DebugAppender();
00036
00041
virtual void close();
00042
00043
protected:
00049
virtual void _append(
const LoggingEvent& event);
00050 };
00051 }
00052
00053
#else // WIN32
00054
#error NTEventLoggAppender is not available on on Win32 platforms
00055
#endif // WIN32
00056
00057
#endif // _LOG4CPP_WIN32DEBUGAPPENDER_HH