log4cplus_AsyncAppender(3)
| log4cplus::AsyncAppender(3) | log4cplus | log4cplus::AsyncAppender(3) |
NAME
log4cplus::AsyncAppender - This Appender is a wrapper to which other appenders can be attached.
SYNOPSIS
#include <asyncappender.h>
Inherits log4cplus::Appender, and log4cplus::helpers::AppenderAttachableImpl.
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
Additional Inherited Members
Detailed Description
This Appender is a wrapper to which other appenders can be attached.
The attached appendres are then appended to from a separate thread which reads events appended to this appender from a queue.
Properties
- QueueLimit
- Events queue size limit. Default is 100.
- Appender
- Appender and its properties to use as sink for logged events.
See also
Definition at line 77 of file asyncappender.h.
Constructor & Destructor Documentation
log4cplus::AsyncAppender::AsyncAppender (SharedAppenderPtr const & app, unsigned max_len)
log4cplus::AsyncAppender::AsyncAppender (helpers::Properties const &)
virtual log4cplus::AsyncAppender::~AsyncAppender () [virtual]
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
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
thread::QueuePtr log4cplus::AsyncAppender::queue [protected]
Definition at line 94 of file asyncappender.h.
thread::AbstractThreadPtr log4cplus::AsyncAppender::queue_thread [protected]
Definition at line 93 of file asyncappender.h.
Author
Generated automatically by Doxygen for log4cplus from the source code.
| Fri Jun 18 2021 | Version 2.0.6 |
