2 #include "log4cxx/spi/loggingevent.h" 17 return Level::getFatal();
19 return Level::getError();
21 return Level::getError();
23 return Level::getError();
25 return Level::getWarn();
27 return Level::getInfo();
29 return Level::getInfo();
31 return Level::getDebug();
33 return Level::getDebug();
35 return Level::getDebug();
43 Log4cxxAppender::Log4cxxAppender(std::string name) :
46 hostname_prop(
"localhost"), port_prop(4560),
47 maxEventsPerCycle_prop(0),
67 log(
Error) <<
"Invalid maxEventsPerCycle value of " 68 << m <<
". Value must be >= 0." 76 address = helpers::InetAddress::getLocalHost();
85 net::SocketAppender::DEFAULT_RECONNECTION_DELAY = 3000;
113 spi::LoggingEventPtr e2 =
tolog4cxx( event,
p );
131 spi::LoggingEventPtr e2 =
tolog4cxx( event,
p );
A mirror of log4cpp::LoggingEvent, except using real-time capable strings.
log4cpp::Priority::Value priority
std::string makeString(const RTT::rt_string &str)
int maxEventsPerCycle_prop
log4cxx::helpers::InetAddressPtr address
virtual bool configureHook()
virtual void cleanupHook()
log4cxx::LevelPtr tolog4cxxLevel(log4cpp::Priority::Value priority)
std::string hostname_prop
Name of host to append to.
base::InputPortInterface & addEventPort(const std::string &name, base::InputPortInterface &port, SlotFunction callback=SlotFunction())
DataFlowInterface * ports()
virtual ~Log4cxxAppender()
Property< T > & addProperty(const std::string &name, T &attr)
RTT::InputPort< OCL::logging::LoggingEvent > log_port
int port_prop
The port where the logging server runs.
PropertyBag * properties()
spi::LoggingEventPtr tolog4cxx(logging::LoggingEvent const &e, log4cxx::helpers::Pool &pool)
virtual void updateHook()
log4cxx::net::SocketAppender * socketAppender
ORO_CREATE_COMPONENT(OCL::logging::Log4cxxAppender)
RTT::rt_string categoryName