#include <FileAppender.hpp>
Public Member Functions | |
FileAppender (std::string name) | |
virtual | ~FileAppender () |
Protected Member Functions | |
virtual void | cleanupHook () |
Destroy appender. | |
virtual bool | configureHook () |
Create log4cpp appender. | |
virtual void | updateHook () |
Process at most maxEventsPerCycle event. | |
Protected Attributes | |
RTT::Property< std::string > | filename_prop |
Name of file to append to. | |
int | maxEventsPerCycle |
RTT::Property< int > | maxEventsPerCycle_prop |
Definition at line 10 of file FileAppender.hpp.
OCL::logging::FileAppender::FileAppender | ( | std::string | name | ) |
Definition at line 12 of file FileAppender.cpp.
OCL::logging::FileAppender::~FileAppender | ( | ) | [virtual] |
Definition at line 22 of file FileAppender.cpp.
void OCL::logging::FileAppender::cleanupHook | ( | ) | [protected, virtual] |
Destroy appender.
Reimplemented from RTT::base::TaskCore.
Definition at line 53 of file FileAppender.cpp.
bool OCL::logging::FileAppender::configureHook | ( | ) | [protected, virtual] |
Create log4cpp appender.
Reimplemented from RTT::base::TaskCore.
Definition at line 26 of file FileAppender.cpp.
void OCL::logging::FileAppender::updateHook | ( | ) | [protected, virtual] |
Process at most maxEventsPerCycle event.
Reimplemented from RTT::base::TaskCore.
Definition at line 48 of file FileAppender.cpp.
RTT::Property<std::string> OCL::logging::FileAppender::filename_prop [protected] |
Name of file to append to.
Definition at line 24 of file FileAppender.hpp.
int OCL::logging::FileAppender::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 39 of file FileAppender.hpp.
RTT::Property<int> OCL::logging::FileAppender::maxEventsPerCycle_prop [protected] |
Property to set maximum number of log events to pop per cycle
Definition at line 28 of file FileAppender.hpp.