Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
log4cpp::BufferingAppender Class Reference

#include <BufferingAppender.hh>

Inheritance diagram for log4cpp::BufferingAppender:
Inheritance graph
[legend]

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 FiltergetFilter ()
 
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< LoggingEventqueue_t
 

Private Member Functions

void dump ()
 

Private Attributes

std::auto_ptr< TriggeringEventEvaluatorevaluator_
 
bool lossy_
 
unsigned long max_size_
 
queue_t queue_
 
std::auto_ptr< Appendersink_
 

Additional Inherited Members

- Public Types inherited from log4cpp::LayoutAppender
typedef BasicLayout DefaultLayoutType
 
- Static Public Member Functions inherited from log4cpp::Appender
static void closeAll ()
 
static AppendergetAppender (const std::string &name)
 
static bool reopenAll ()
 

Detailed Description

Definition at line 18 of file BufferingAppender.hh.

Member Typedef Documentation

Definition at line 33 of file BufferingAppender.hh.

Constructor & Destructor Documentation

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.

Member Function Documentation

void log4cpp::BufferingAppender::_append ( const LoggingEvent event)
protectedvirtual

Log in Appender specific way. Subclasses of Appender should implement this method to perform actual logging.

Parameters
eventThe LoggingEvent to log.

Implements log4cpp::AppenderSkeleton.

Definition at line 22 of file BufferingAppender.cpp.

virtual void log4cpp::BufferingAppender::close ( )
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.

void log4cpp::BufferingAppender::dump ( )
private

Definition at line 43 of file BufferingAppender.cpp.

bool log4cpp::BufferingAppender::getLossy ( ) const
inline

Definition at line 26 of file BufferingAppender.hh.

void log4cpp::BufferingAppender::setLossy ( bool  lossy)
inline

Definition at line 27 of file BufferingAppender.hh.

Member Data Documentation

std::auto_ptr<TriggeringEventEvaluator> log4cpp::BufferingAppender::evaluator_
private

Definition at line 38 of file BufferingAppender.hh.

bool log4cpp::BufferingAppender::lossy_
private

Definition at line 39 of file BufferingAppender.hh.

unsigned long log4cpp::BufferingAppender::max_size_
private

Definition at line 36 of file BufferingAppender.hh.

queue_t log4cpp::BufferingAppender::queue_
private

Definition at line 35 of file BufferingAppender.hh.

std::auto_ptr<Appender> log4cpp::BufferingAppender::sink_
private

Definition at line 37 of file BufferingAppender.hh.


The documentation for this class was generated from the following files:


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00