Loading...
Searching...
No Matches
Win32DebugAppender.hh
Go to the documentation of this file.
/*
* Win32DebugAppender.hh
*
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4SHIB_WIN32DEBUGAPPENDER_HH
#define _LOG4SHIB_WIN32DEBUGAPPENDER_HH
#ifdef WIN32 // only use this on Win32
#include <string>
#include "log4shib/Export.hh"
#include "log4shib/LayoutAppender.hh"
namespace log4shib {
class LOG4SHIB_EXPORT Win32DebugAppender : public LayoutAppender {
public:
Win32DebugAppender(const std::string& name);
virtual ~Win32DebugAppender();
virtual void close();
protected:
virtual void _append(const LoggingEvent& event);
};
}
#else // WIN32
#error NTEventLoggAppender is not available on on Win32 platforms
#endif // WIN32
#endif // _LOG4SHIB_WIN32DEBUGAPPENDER_HH
Export.hh
LOG4SHIB_EXPORT
#define LOG4SHIB_EXPORT
Definition Export.hh:11
LayoutAppender.hh
log4shib::LayoutAppender::LayoutAppender
LayoutAppender(const std::string &name)
Definition LayoutAppender.cpp:15
log4shib::Win32DebugAppender::close
virtual void close()
Close method.
Definition Win32DebugAppender.cpp:34
log4shib::Win32DebugAppender::Win32DebugAppender
Win32DebugAppender(const std::string &name)
Constructor.
Definition Win32DebugAppender.cpp:26
log4shib::Win32DebugAppender::_append
virtual void _append(const LoggingEvent &event)
Method that does the actual work.
Definition Win32DebugAppender.cpp:37
log4shib
The top level namespace for all 'Log for C++' types and classes.
Definition AbortAppender.hh:16
log4shib::LoggingEvent
The internal representation of logging events.
Definition LoggingEvent.hh:32