#include <Log4cxxAppender.hpp>
Public Member Functions | |
Log4cxxAppender (std::string name) | |
virtual | ~Log4cxxAppender () |
Protected Member Functions | |
virtual void | cleanupHook () |
virtual bool | configureHook () |
virtual void | updateHook () |
Protected Attributes | |
log4cxx::helpers::InetAddressPtr | address |
std::string | hostname_prop |
Name of host to append to. | |
RTT::InputPort < OCL::logging::LoggingEvent > | log_port |
int | maxEventsPerCycle |
int | maxEventsPerCycle_prop |
log4cxx::helpers::Pool | p |
int | port_prop |
The port where the logging server runs. | |
log4cxx::net::SocketAppender * | socketAppender |
Interoperability component which translates our log4cpp events to log4cxx events and sends them to a network/socket appender.
Definition at line 40 of file Log4cxxAppender.hpp.
OCL::logging::Log4cxxAppender::Log4cxxAppender | ( | std::string | name | ) |
Definition at line 43 of file Log4cxxAppender.cpp.
OCL::logging::Log4cxxAppender::~Log4cxxAppender | ( | ) | [virtual] |
Definition at line 57 of file Log4cxxAppender.cpp.
void OCL::logging::Log4cxxAppender::cleanupHook | ( | ) | [protected, virtual] |
Reimplemented from RTT::base::TaskCore.
Definition at line 144 of file Log4cxxAppender.cpp.
bool OCL::logging::Log4cxxAppender::configureHook | ( | ) | [protected, virtual] |
Reimplemented from RTT::base::TaskCore.
Definition at line 61 of file Log4cxxAppender.cpp.
void OCL::logging::Log4cxxAppender::updateHook | ( | ) | [protected, virtual] |
Reimplemented from RTT::base::TaskCore.
Definition at line 95 of file Log4cxxAppender.cpp.
log4cxx::helpers::InetAddressPtr OCL::logging::Log4cxxAppender::address [protected] |
Definition at line 53 of file Log4cxxAppender.hpp.
std::string OCL::logging::Log4cxxAppender::hostname_prop [protected] |
Name of host to append to.
Definition at line 60 of file Log4cxxAppender.hpp.
Port we receive logging events on Initially unconnected. The logging service connects appenders.
Definition at line 57 of file Log4cxxAppender.hpp.
int OCL::logging::Log4cxxAppender::maxEventsPerCycle [protected] |
Maximum number of log events to pop per cycle
Defaults to 0.
A value of 0 indicates to not limit the number of events per cycle. With enough event production, this could lead to thread starvation!
Definition at line 78 of file Log4cxxAppender.hpp.
int OCL::logging::Log4cxxAppender::maxEventsPerCycle_prop [protected] |
Property to set maximum number of log events to pop per cycle
Definition at line 67 of file Log4cxxAppender.hpp.
log4cxx::helpers::Pool OCL::logging::Log4cxxAppender::p [protected] |
Definition at line 51 of file Log4cxxAppender.hpp.
int OCL::logging::Log4cxxAppender::port_prop [protected] |
The port where the logging server runs.
Definition at line 63 of file Log4cxxAppender.hpp.
log4cxx::net::SocketAppender* OCL::logging::Log4cxxAppender::socketAppender [protected] |
Definition at line 52 of file Log4cxxAppender.hpp.