|
log4cplus
2.0.0
|
Send log events to a C function callback. More...
#include <callbackappender.h>
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. | |
Send log events to a C function callback.
Definition at line 46 of file callbackappender.h.
| log4cplus::CallbackAppender::CallbackAppender | ( | log4cplus_log_event_callback_t | callback, |
| void * | cookie | ||
| ) |
| virtual log4cplus::CallbackAppender::~CallbackAppender | ( | ) | [virtual] |
| virtual void log4cplus::CallbackAppender::append | ( | const log4cplus::spi::InternalLoggingEvent & | event | ) | [protected, virtual] |
Subclasses of Appender should implement this method to perform actual logging.
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.
| void log4cplus::CallbackAppender::setCookie | ( | void * | ) |
1.7.6.1