OrocosComponentLibrary  2.9.0
FileAppender.hpp
1 #ifndef FILEAPPENDER_HPP
2 #define FILEAPPENDER_HPP 1
3 
4 #include "Appender.hpp"
5 #include <rtt/Property.hpp>
6 
7 namespace OCL {
8 namespace logging {
9 
11 {
12 public:
13  FileAppender(std::string name);
14  virtual ~FileAppender();
15 protected:
17  virtual bool configureHook();
19  virtual void updateHook();
21  virtual void cleanupHook();
22 
24  RTT::Property<std::string> filename_prop;
28  RTT::Property<int> maxEventsPerCycle_prop;
29 
40 };
41 
42 // namespaces
43 }
44 }
45 
46 #endif
RTT::Property< int > maxEventsPerCycle_prop
Property to set maximum number of log events to pop per cycle.
virtual void updateHook()
Process at most maxEventsPerCycle event.
virtual void cleanupHook()
Destroy appender.
virtual bool configureHook()
Create log4cpp appender.
RTT::Property< std::string > filename_prop
Name of file to append to.
int maxEventsPerCycle
Maximum number of log events to pop per cycle.
The Orocos Component Library.
Definition: Component.hpp:43