OrocosComponentLibrary  2.8.3
RollingFileAppender.hpp
1 #ifndef ROLLINGFILEAPPENDER_HPP
2 #define ROLLINGFILEAPPENDER_HPP 1
3 
4 #include "Appender.hpp"
5 #include <rtt/Property.hpp>
6 
7 namespace OCL {
8 namespace logging {
9 
11 {
12 public:
13  RollingFileAppender(std::string name);
14  virtual ~RollingFileAppender();
15 protected:
17  virtual bool configureHook();
19  virtual void updateHook();
21  virtual void cleanupHook();
22 
24  RTT::Property<std::string> filename_prop;
26  RTT::Property<int> maxFileSize_prop;
28  RTT::Property<int> maxBackupIndex_prop;
32  RTT::Property<int> maxEventsPerCycle_prop;
33 
44 };
45 
46 // namespaces
47 }
48 }
49 
50 #endif
int maxEventsPerCycle
Maximum number of log events to pop per cycle.
virtual bool configureHook()
Create log4cpp appender.
virtual void updateHook()
Process at most maxEventsPerCycle event.
RTT::Property< int > maxFileSize_prop
Maximum file size (in bytes) before rolling over.
The Orocos Component Library.
Definition: Component.hpp:43
RTT::Property< int > maxBackupIndex_prop
Maximum number of backup files to keep.
RTT::Property< std::string > filename_prop
Name of file to append to.
RTT::Property< int > maxEventsPerCycle_prop
Property to set maximum number of log events to pop per cycle.
virtual void cleanupHook()
Destroy appender.