OrocosComponentLibrary  2.7.0
RollingFileAppender.hpp
00001 #ifndef ROLLINGFILEAPPENDER_HPP
00002 #define ROLLINGFILEAPPENDER_HPP 1
00003 
00004 #include "Appender.hpp"
00005 #include <rtt/Property.hpp>
00006 
00007 namespace OCL {
00008 namespace logging {
00009 
00010 class RollingFileAppender : public OCL::logging::Appender
00011 {
00012 public:
00013     RollingFileAppender(std::string name);
00014     virtual ~RollingFileAppender();
00015 protected:
00017     virtual bool configureHook();
00019     virtual void updateHook();
00021     virtual void cleanupHook();
00022     
00024     RTT::Property<std::string>      filename_prop;
00026     RTT::Property<int>              maxFileSize_prop;
00028     RTT::Property<int>              maxBackupIndex_prop;
00032     RTT::Property<int>              maxEventsPerCycle_prop;
00033 
00043     int                           maxEventsPerCycle;
00044 };
00045 
00046 // namespaces
00047 }
00048 }
00049 
00050 #endif