12 #include <log4cplus/logger.h>
13 #include <log4cplus/spi/loggingevent.h>
14 #include <boost/shared_ptr.hpp>
34 typedef boost::shared_ptr<log4cplus::spi::InternalLoggingEvent>
LogEventPtr;
96 virtual void append(
const log4cplus::spi::InternalLoggingEvent& event);
101 LogEventList stored_;
109 #endif // LOG_BUFFER_H
std::vector< LevelAndEvent > LogEventList
Convenience typedef for a vector of LevelAndEvent instances.
boost::shared_ptr< log4cplus::spi::InternalLoggingEvent > LogEventPtr
Convenience typedef for a pointer to a log event.
virtual void close()
Close the appender.
size_t getBufferSize() const
Returns the number of stored logging events.
LogBufferAddAfterFlush(const char *file, size_t line, const char *what)
virtual void append(const log4cplus::spi::InternalLoggingEvent &event)
virtual ~BufferAppender()
Destructor.
Buffering Logger Appender.
std::pair< std::string, LogEventPtr > LevelAndEvent
Convenience typedef for a pair string/logeventptr, the string representing the logger level...
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void flush()
Flush the internal buffer.
BufferAppender()
Constructor.