log4cpp::BufferingAppender Class Reference

#include <BufferingAppender.hh>

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

List of all members.

Public Member Functions

 BufferingAppender (const std::string name, unsigned long max_size, std::auto_ptr< Appender > sink, std::auto_ptr< TriggeringEventEvaluator > evaluator)
 BufferingAppender (const std::string name, unsigned long max_size, std::auto_ptr< Appender > sink, std::auto_ptr< TriggeringEventEvaluator > evaluator)
virtual void close ()
virtual void close ()
bool getLossy () const
bool getLossy () const
void setLossy (bool lossy)
void setLossy (bool lossy)

Protected Member Functions

virtual void _append (const LoggingEvent &event)
virtual void _append (const LoggingEvent &event)

Private Types

typedef std::list< LoggingEventqueue_t
typedef std::list< LoggingEventqueue_t

Private Member Functions

void dump ()
void dump ()

Private Attributes

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

Detailed Description

Definition at line 7 of file include/log4cpp/BufferingAppender.hh.


Member Typedef Documentation

typedef std::list<LoggingEvent> log4cpp::BufferingAppender::queue_t [private]

Definition at line 26 of file install/include/log4cpp/BufferingAppender.hh.

typedef std::list<LoggingEvent> log4cpp::BufferingAppender::queue_t [private]

Definition at line 20 of file include/log4cpp/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 3 of file BufferingAppender.cpp.

log4cpp::BufferingAppender::BufferingAppender ( const std::string  name,
unsigned long  max_size,
std::auto_ptr< Appender sink,
std::auto_ptr< TriggeringEventEvaluator evaluator 
)

Member Function Documentation

virtual void log4cpp::BufferingAppender::_append ( const LoggingEvent event  )  [protected, virtual]

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

Parameters:
event The LoggingEvent to log.

Implements log4cpp::AppenderSkeleton.

void log4cpp::BufferingAppender::_append ( const LoggingEvent event  )  [protected, virtual]

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

Parameters:
event The LoggingEvent to log.

Implements log4cpp::AppenderSkeleton.

Definition at line 10 of file BufferingAppender.cpp.

virtual void log4cpp::BufferingAppender::close (  )  [inline, virtual]

Release any resources allocated within the appender such as file handles, network connections, etc.

Implements log4cpp::AppenderSkeleton.

Definition at line 17 of file install/include/log4cpp/BufferingAppender.hh.

virtual void log4cpp::BufferingAppender::close (  )  [inline, virtual]

Release any resources allocated within the appender such as file handles, network connections, etc.

Implements log4cpp::AppenderSkeleton.

Definition at line 11 of file include/log4cpp/BufferingAppender.hh.

void log4cpp::BufferingAppender::dump (  )  [private]
void log4cpp::BufferingAppender::dump (  )  [private]

Definition at line 31 of file BufferingAppender.cpp.

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

Definition at line 19 of file install/include/log4cpp/BufferingAppender.hh.

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

Definition at line 13 of file include/log4cpp/BufferingAppender.hh.

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

Definition at line 20 of file install/include/log4cpp/BufferingAppender.hh.

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

Definition at line 14 of file include/log4cpp/BufferingAppender.hh.


Member Data Documentation

Definition at line 25 of file include/log4cpp/BufferingAppender.hh.

Definition at line 26 of file include/log4cpp/BufferingAppender.hh.

unsigned long log4cpp::BufferingAppender::max_size_ [private]

Definition at line 23 of file include/log4cpp/BufferingAppender.hh.

Definition at line 22 of file include/log4cpp/BufferingAppender.hh.

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

Definition at line 24 of file include/log4cpp/BufferingAppender.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


log4cpp
Author(s): Stephen Roderick
autogenerated on Fri Jan 11 09:51:54 2013