Public Member Functions | Protected Member Functions | Protected Attributes
OCL::logging::GenerationalFileAppender Class Reference

#include <GenerationalFileAppender.hpp>

Inheritance diagram for OCL::logging::GenerationalFileAppender:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GenerationalFileAppender (std::string name)
virtual ~GenerationalFileAppender ()

Protected Member Functions

void advanceGeneration ()
 Advance to the next logfile generation.
virtual void cleanupHook ()
 Destroy appender.
virtual bool configureHook ()
 Create log4cpp appender.
virtual void updateHook ()
 Process at most maxEventsPerCycle event.

Protected Attributes

RTT::Operation< void(void)> advanceGeneration_op
RTT::Property< std::string > filename_prop
 Name of file to append to.
int maxEventsPerCycle
RTT::Property< int > maxEventsPerCycle_prop

Detailed Description

Appender supporting generations of log files

Each new generation is logged to a new file

Definition at line 14 of file GenerationalFileAppender.hpp.


Constructor & Destructor Documentation

Definition at line 12 of file GenerationalFileAppender.cpp.

Definition at line 27 of file GenerationalFileAppender.cpp.


Member Function Documentation

Advance to the next logfile generation.

Definition at line 67 of file GenerationalFileAppender.cpp.

Destroy appender.

Reimplemented from RTT::base::TaskCore.

Definition at line 57 of file GenerationalFileAppender.cpp.

Create log4cpp appender.

Reimplemented from RTT::base::TaskCore.

Definition at line 31 of file GenerationalFileAppender.cpp.

Process at most maxEventsPerCycle event.

Reimplemented from RTT::base::TaskCore.

Definition at line 52 of file GenerationalFileAppender.cpp.


Member Data Documentation

Definition at line 28 of file GenerationalFileAppender.hpp.

Name of file to append to.

Definition at line 33 of file GenerationalFileAppender.hpp.

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 48 of file GenerationalFileAppender.hpp.

Property to set maximum number of log events to pop per cycle

Definition at line 37 of file GenerationalFileAppender.hpp.


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


ocl
Author(s): OCL Development Team
autogenerated on Mon Sep 14 2015 14:21:47