log4cplus  1.1.0
Public Member Functions | Protected Member Functions | Protected Attributes
log4cplus::AsyncAppender Class Reference

#include <asyncappender.h>

Inheritance diagram for log4cplus::AsyncAppender:
[legend]
Collaboration diagram for log4cplus::AsyncAppender:
[legend]

List of all members.

Public Member Functions

 AsyncAppender (SharedAppenderPtr const &app, unsigned max_len)
 AsyncAppender (helpers::Properties const &)
virtual ~AsyncAppender ()
virtual void close ()
 Release any resources allocated within the appender such as file handles, network connections, etc.

Protected Member Functions

virtual void append (spi::InternalLoggingEvent const &)
 Subclasses of Appender should implement this method to perform actual logging.
void init_queue_thread (unsigned)

Protected Attributes

thread::AbstractThreadPtr queue_thread
thread::QueuePtr queue

Detailed Description

Definition at line 57 of file asyncappender.h.


Constructor & Destructor Documentation

log4cplus::AsyncAppender::AsyncAppender ( SharedAppenderPtr const &  app,
unsigned  max_len 
)

Member Function Documentation

virtual void log4cplus::AsyncAppender::append ( spi::InternalLoggingEvent const &  event) [protected, virtual]

Subclasses of Appender should implement this method to perform actual logging.

See also:
doAppend method.

Implements log4cplus::Appender.

virtual void log4cplus::AsyncAppender::close ( ) [virtual]

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

It is a programming error to append to a closed appender.

Implements log4cplus::Appender.

void log4cplus::AsyncAppender::init_queue_thread ( unsigned  ) [protected]

Member Data Documentation

Definition at line 74 of file asyncappender.h.

Definition at line 73 of file asyncappender.h.


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