1 #include "logging/OstreamAppender.hpp" 4 #include <log4cpp/OstreamAppender.hh> 11 OstreamAppender::OstreamAppender(std::string name) :
12 OCL::logging::Appender(name),
13 maxEventsPerCycle_prop(
"MaxEventsPerCycle",
"Maximum number of log events to pop per cycle",1),
16 properties()->addProperty(maxEventsPerCycle_prop);
19 OstreamAppender::~OstreamAppender()
23 bool OstreamAppender::configureHook()
26 int m = maxEventsPerCycle_prop.rvalue();
29 log(Error) <<
"Invalid maxEventsPerCycle value of " 30 << m <<
". Value must be >= 0." 34 maxEventsPerCycle = m;
37 appender =
new log4cpp::OstreamAppender(getName(), &std::cout);
39 return configureLayout();
42 void OstreamAppender::updateHook()
47 void OstreamAppender::cleanupHook()
This file contains the macros and definitions to create dynamically loadable components.
The Orocos Component Library.