 |
Kea
1.5.0
|
Go to the documentation of this file.
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);
109 #endif // LOG_BUFFER_H
boost::shared_ptr< log4cplus::spi::InternalLoggingEvent > LogEventPtr
Convenience typedef for a pointer to a log event.
LogBufferAddAfterFlush(const char *file, size_t line, const char *what)
Buffering Logger Appender.
virtual void append(const log4cplus::spi::InternalLoggingEvent &event)
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.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
BufferAppender()
Constructor.
std::vector< LevelAndEvent > LogEventList
Convenience typedef for a vector of LevelAndEvent instances.
virtual void close()
Close the appender.
virtual ~BufferAppender()
Destructor.
std::pair< std::string, LogEventPtr > LevelAndEvent
Convenience typedef for a pair string/logeventptr, the string representing the logger level,...
void flush()
Flush the internal buffer.
size_t getBufferSize() const
Returns the number of stored logging events.