#include <BufferingAppender.hh>
Public Member Functions | |
BufferingAppender (const std::string name, unsigned long max_size, std::auto_ptr< Appender > sink, std::auto_ptr< TriggeringEventEvaluator > evaluator) | |
virtual void | close () |
bool | getLossy () const |
void | setLossy (bool lossy) |
Public Member Functions inherited from log4cpp::LayoutAppender | |
LayoutAppender (const std::string &name) | |
virtual bool | requiresLayout () const |
virtual void | setLayout (Layout *layout=NULL) |
virtual | ~LayoutAppender () |
Public Member Functions inherited from log4cpp::AppenderSkeleton | |
virtual void | doAppend (const LoggingEvent &event) |
virtual Filter * | getFilter () |
virtual Priority::Value | getThreshold () |
virtual bool | reopen () |
virtual void | setFilter (Filter *filter) |
virtual void | setThreshold (Priority::Value priority) |
virtual | ~AppenderSkeleton () |
Public Member Functions inherited from log4cpp::Appender | |
const std::string & | getName () const |
virtual | ~Appender () |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event) |
Protected Member Functions inherited from log4cpp::LayoutAppender | |
Layout & | _getLayout () |
Protected Member Functions inherited from log4cpp::AppenderSkeleton | |
AppenderSkeleton (const std::string &name) | |
Protected Member Functions inherited from log4cpp::Appender | |
Appender (const std::string &name) | |
Private Types | |
typedef std::list< LoggingEvent > | queue_t |
Private Member Functions | |
void | dump () |
Private Attributes | |
std::auto_ptr< TriggeringEventEvaluator > | evaluator_ |
bool | lossy_ |
unsigned long | max_size_ |
queue_t | queue_ |
std::auto_ptr< Appender > | sink_ |
Additional Inherited Members | |
Public Types inherited from log4cpp::LayoutAppender | |
typedef BasicLayout | DefaultLayoutType |
Static Public Member Functions inherited from log4cpp::Appender | |
static void | closeAll () |
static Appender * | getAppender (const std::string &name) |
static bool | reopenAll () |
Definition at line 18 of file BufferingAppender.hh.
|
private |
Definition at line 33 of file BufferingAppender.hh.
log4cpp::BufferingAppender::BufferingAppender | ( | const std::string | name, |
unsigned long | max_size, | ||
std::auto_ptr< Appender > | sink, | ||
std::auto_ptr< TriggeringEventEvaluator > | evaluator | ||
) |
Definition at line 15 of file BufferingAppender.cpp.
|
protectedvirtual |
Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.
event | The LoggingEvent to log. |
Implements log4cpp::AppenderSkeleton.
Definition at line 22 of file BufferingAppender.cpp.
|
inlinevirtual |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements log4cpp::AppenderSkeleton.
Definition at line 24 of file BufferingAppender.hh.
|
private |
Definition at line 43 of file BufferingAppender.cpp.
|
inline |
Definition at line 26 of file BufferingAppender.hh.
|
inline |
Definition at line 27 of file BufferingAppender.hh.
|
private |
Definition at line 38 of file BufferingAppender.hh.
|
private |
Definition at line 39 of file BufferingAppender.hh.
|
private |
Definition at line 36 of file BufferingAppender.hh.
|
private |
Definition at line 35 of file BufferingAppender.hh.
|
private |
Definition at line 37 of file BufferingAppender.hh.