#include <OstreamAppender.hpp>
Public Member Functions | |
OstreamAppender (std::string name) | |
virtual | ~OstreamAppender () |
Protected Member Functions | |
virtual void | cleanupHook () |
Destroy appender. | |
virtual bool | configureHook () |
Create log4cpp appender. | |
virtual void | updateHook () |
Process at most one (1) event. | |
Protected Attributes | |
int | maxEventsPerCycle |
RTT::Property< int > | maxEventsPerCycle_prop |
Definition at line 10 of file OstreamAppender.hpp.
OCL::logging::OstreamAppender::OstreamAppender | ( | std::string | name | ) |
Definition at line 11 of file OstreamAppender.cpp.
OCL::logging::OstreamAppender::~OstreamAppender | ( | ) | [virtual] |
Definition at line 19 of file OstreamAppender.cpp.
void OCL::logging::OstreamAppender::cleanupHook | ( | ) | [protected, virtual] |
Destroy appender.
Reimplemented from RTT::base::TaskCore.
Definition at line 47 of file OstreamAppender.cpp.
bool OCL::logging::OstreamAppender::configureHook | ( | ) | [protected, virtual] |
Create log4cpp appender.
Reimplemented from RTT::base::TaskCore.
Definition at line 23 of file OstreamAppender.cpp.
void OCL::logging::OstreamAppender::updateHook | ( | ) | [protected, virtual] |
Process at most one (1) event.
Reimplemented from RTT::base::TaskCore.
Definition at line 42 of file OstreamAppender.cpp.
int OCL::logging::OstreamAppender::maxEventsPerCycle [protected] |
Maximum number of log events to pop per cycle
Defaults to 1.
A value of 0 indicates to not limit the number of events per cycle. With enough event production, this could lead to thread starvation!
Definition at line 38 of file OstreamAppender.hpp.
RTT::Property<int> OCL::logging::OstreamAppender::maxEventsPerCycle_prop [protected] |
Property to set maximum number of log events to pop per cycle
Definition at line 27 of file OstreamAppender.hpp.