|
OrocosComponentLibrary
2.9.0
|
A real-time capable category. More...
#include <Category.hpp>
Public Member Functions | |
| virtual void | log (log4cpp::Priority::Value priority, const RTT::rt_string &message) throw () |
| void | debug (const RTT::rt_string &message) throw () |
| void | info (const RTT::rt_string &message) throw () |
| void | notice (const RTT::rt_string &message) throw () |
| void | warn (const RTT::rt_string &message) throw () |
| void | error (const RTT::rt_string &message) throw () |
| void | crit (const RTT::rt_string &message) throw () |
| void | alert (const RTT::rt_string &message) throw () |
| void | emerg (const RTT::rt_string &message) throw () |
| void | fatal (const RTT::rt_string &message) throw () |
| CategoryStream | getRTStream (log4cpp::Priority::Value priority) |
| Returns a stream-like object into which you can log arbitrary data which supports the operator<<(). | |
| bool | connectToLogPort (RTT::base::PortInterface &otherPort) |
| Connect otherPort to log_port. More... | |
| bool | connectToLogPort (RTT::base::PortInterface &otherPort, RTT::ConnPolicy &cp) |
| Connect otherPort to log_port with connection policy cp. More... | |
Static Public Member Functions | |
| static log4cpp::Category * | createOCLCategory (const std::string &name, log4cpp::Category *parent, log4cpp::Priority::Value priority) |
| Factory function for log4cpp::HierarchyMaintainer Creates an OCL logging category. More... | |
Protected Member Functions | |
| void | _logUnconditionally2 (log4cpp::Priority::Value priority, const RTT::rt_string &message) throw () |
| Category (const std::string &name, log4cpp::Category *parent, log4cpp::Priority::Value priority=log4cpp::Priority::NOTSET) | |
| virtual void | callAppenders (const OCL::logging::LoggingEvent &event) throw () |
| Send event to all attached appenders. More... | |
Static Protected Member Functions | |
| static std::string | convertName (const std::string &name) |
| Convert name into Orocos notation (e.g. More... | |
Protected Attributes | |
| RTT::OutputPort< OCL::logging::LoggingEvent > | log_port |
Friends | |
| class | OCL::logging::LoggingService |
| for access to log_port | |
A real-time capable category.
Definition at line 25 of file Category.hpp.
|
protected | ||||||||||||||||||||
Definition at line 88 of file Category.cpp.
|
protectedvirtual | ||||||||||||||
Send event to all attached appenders.
| event | The event of interest |
Definition at line 109 of file Category.cpp.
References Category::callAppenders(), and Appender::log_port.
Referenced by Category::callAppenders().
| bool connectToLogPort | ( | RTT::base::PortInterface & | otherPort | ) |
Connect otherPort to log_port.
Typically used by unit test code to directly syphon off logging events.
Definition at line 155 of file Category.cpp.
References Appender::log_port.
| bool connectToLogPort | ( | RTT::base::PortInterface & | otherPort, |
| RTT::ConnPolicy & | cp | ||
| ) |
Connect otherPort to log_port with connection policy cp.
Typically used by unit test code to directly syphon off logging events.
Definition at line 160 of file Category.cpp.
References Appender::log_port.
|
staticprotected |
Convert name into Orocos notation (e.g.
"org.me.app" -> "org_me_app")
Definition at line 125 of file Category.cpp.
|
static |
Factory function for log4cpp::HierarchyMaintainer Creates an OCL logging category.
Definition at line 137 of file Category.cpp.
1.8.11