log4cplus  2.0.0
Public Member Functions | Protected Member Functions
log4cplus::CallbackAppender Class Reference

Send log events to a C function callback. More...

#include <callbackappender.h>

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

List of all members.

Public Member Functions

 CallbackAppender ()
 CallbackAppender (log4cplus_log_event_callback_t callback, void *cookie)
 CallbackAppender (const log4cplus::helpers::Properties &)
virtual ~CallbackAppender ()
virtual void close ()
 Release any resources allocated within the appender such as file handles, network connections, etc.
void setCookie (void *)
void setCallback (log4cplus_log_event_callback_t)

Protected Member Functions

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

Detailed Description

Send log events to a C function callback.

Definition at line 46 of file callbackappender.h.


Constructor & Destructor Documentation


Member Function Documentation

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

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

See also:
doAppend method.

Implements log4cplus::Appender.

virtual void log4cplus::CallbackAppender::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.


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