#include <RollingFileAppender.hpp>
Public Member Functions | |
RollingFileAppender (std::string name) | |
virtual | ~RollingFileAppender () |
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. | |
RTT::Property< int > | maxBackupIndex_prop |
Maximum number of backup files to keep. | |
int | maxEventsPerCycle |
RTT::Property< int > | maxEventsPerCycle_prop |
RTT::Property< int > | maxFileSize_prop |
Maximum file size (in bytes) before rolling over. |
Definition at line 10 of file RollingFileAppender.hpp.
OCL::logging::RollingFileAppender::RollingFileAppender | ( | std::string | name | ) |
Definition at line 12 of file RollingFileAppender.cpp.
OCL::logging::RollingFileAppender::~RollingFileAppender | ( | ) | [virtual] |
Definition at line 32 of file RollingFileAppender.cpp.
void OCL::logging::RollingFileAppender::cleanupHook | ( | ) | [protected, virtual] |
Destroy appender.
Reimplemented from RTT::base::TaskCore.
Definition at line 66 of file RollingFileAppender.cpp.
bool OCL::logging::RollingFileAppender::configureHook | ( | ) | [protected, virtual] |
Create log4cpp appender.
Reimplemented from RTT::base::TaskCore.
Definition at line 36 of file RollingFileAppender.cpp.
void OCL::logging::RollingFileAppender::updateHook | ( | ) | [protected, virtual] |
Process at most maxEventsPerCycle event.
Reimplemented from RTT::base::TaskCore.
Definition at line 61 of file RollingFileAppender.cpp.
RTT::Property<std::string> OCL::logging::RollingFileAppender::filename_prop [protected] |
Name of file to append to.
Definition at line 24 of file RollingFileAppender.hpp.
RTT::Property<int> OCL::logging::RollingFileAppender::maxBackupIndex_prop [protected] |
Maximum number of backup files to keep.
Definition at line 28 of file RollingFileAppender.hpp.
int OCL::logging::RollingFileAppender::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 43 of file RollingFileAppender.hpp.
RTT::Property<int> OCL::logging::RollingFileAppender::maxEventsPerCycle_prop [protected] |
Property to set maximum number of log events to pop per cycle
Definition at line 32 of file RollingFileAppender.hpp.
RTT::Property<int> OCL::logging::RollingFileAppender::maxFileSize_prop [protected] |
Maximum file size (in bytes) before rolling over.
Definition at line 26 of file RollingFileAppender.hpp.