#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 () |
Release any resources allocated within the appender such as file handles, network connections, etc. More... | |
bool | getLossy () const |
void | setLossy (bool lossy) |
Public Member Functions inherited from LayoutAppender | |
LayoutAppender (const std::string &name) | |
virtual bool | requiresLayout () const |
Check if the appender requires a layout. More... | |
virtual void | setLayout (Layout *layout=NULL) |
Set the Layout for this appender. More... | |
virtual | ~LayoutAppender () |
Public Member Functions inherited from AppenderSkeleton | |
virtual void | doAppend (const LoggingEvent &event) |
Log in Appender specific way. More... | |
virtual Filter * | getFilter () |
Get the Filter for this appender. More... | |
virtual Priority::Value | getThreshold () |
Get the threshold priority of this Appender. More... | |
virtual bool | reopen () |
Reopens the output destination of this Appender, e.g. More... | |
virtual void | setFilter (Filter *filter) |
Set a Filter for this appender. More... | |
virtual void | setThreshold (Priority::Value priority) |
Set the threshold priority of this Appender. More... | |
virtual | ~AppenderSkeleton () |
Destructor for AppenderSkeleton. More... | |
Public Member Functions inherited from Appender | |
const std::string & | getName () const |
Get the name of this appender. More... | |
virtual | ~Appender () |
Destructor for Appender. More... | |
Protected Member Functions | |
virtual void | _append (const LoggingEvent &event) |
Log in Appender specific way. More... | |
Protected Member Functions inherited from LayoutAppender | |
Layout & | _getLayout () |
Return the layout of the appender. More... | |
Protected Member Functions inherited from AppenderSkeleton | |
AppenderSkeleton (const std::string &name) | |
Constructor for AppenderSkeleton. More... | |
Protected Member Functions inherited from Appender | |
Appender (const std::string &name) | |
Constructor for Appender. More... | |
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 LayoutAppender | |
typedef BasicLayout | DefaultLayoutType |
Static Public Member Functions inherited from Appender | |
static void | closeAll () |
Call reopen() on all existing Appenders. More... | |
static Appender * | getAppender (const std::string &name) |
Get a pointer to an existing Appender. More... | |
static bool | reopenAll () |
Call reopen() on all existing Appenders. More... | |
Definition at line 10 of file BufferingAppender.hh.
|
private |
Definition at line 25 of file BufferingAppender.hh.
BufferingAppender::BufferingAppender | ( | const std::string | name, |
unsigned long | max_size, | ||
std::auto_ptr< Appender > | sink, | ||
std::auto_ptr< TriggeringEventEvaluator > | evaluator | ||
) |
|
protectedvirtual |
Log in Appender specific way.
Subclasses of Appender should implement this method to perform actual logging.
event | The LoggingEvent to log. |
Implements AppenderSkeleton.
|
inlinevirtual |
Release any resources allocated within the appender such as file handles, network connections, etc.
Implements AppenderSkeleton.
Definition at line 16 of file BufferingAppender.hh.
|
private |
|
inline |
Definition at line 18 of file BufferingAppender.hh.
|
inline |
Definition at line 19 of file BufferingAppender.hh.
|
private |
Definition at line 30 of file BufferingAppender.hh.
|
private |
Definition at line 31 of file BufferingAppender.hh.
|
private |
Definition at line 28 of file BufferingAppender.hh.
|
private |
Definition at line 27 of file BufferingAppender.hh.
|
private |
Definition at line 29 of file BufferingAppender.hh.