4 #include <log4cpp/Category.hh> 5 #include "LoggingEvent.hpp" 6 #include "CategoryStream.hpp" 7 #include <rtt/Port.hpp> 33 virtual void log(log4cpp::Priority::Value priority,
34 const RTT::rt_string& message)
throw();
35 void debug(
const RTT::rt_string& message)
throw();
36 void info(
const RTT::rt_string& message)
throw();
37 void notice(
const RTT::rt_string& message)
throw();
38 void warn(
const RTT::rt_string& message)
throw();
39 void error(
const RTT::rt_string& message)
throw();
40 void crit(
const RTT::rt_string& message)
throw();
41 void alert(
const RTT::rt_string& message)
throw();
42 void emerg(
const RTT::rt_string& message)
throw();
43 void fatal(
const RTT::rt_string& message)
throw();
52 void _logUnconditionally2(log4cpp::Priority::Value priority,
53 const RTT::rt_string& message)
throw();
58 using log4cpp::Category::setPriority;
59 using log4cpp::Category::getPriority;
60 using log4cpp::Category::getChainedPriority;
61 using log4cpp::Category::isPriorityEnabled;
63 using log4cpp::Category::setAdditivity;
64 using log4cpp::Category::getAdditivity;
65 using log4cpp::Category::getParent;
67 using log4cpp::Category::isDebugEnabled;
68 using log4cpp::Category::isInfoEnabled;
69 using log4cpp::Category::isNoticeEnabled;
70 using log4cpp::Category::isWarnEnabled;
71 using log4cpp::Category::isErrorEnabled;
72 using log4cpp::Category::isCritEnabled;
73 using log4cpp::Category::isAlertEnabled;
74 using log4cpp::Category::isEmergEnabled;
75 using log4cpp::Category::isFatalEnabled;
80 using log4cpp::Category::getAppender;
86 using log4cpp::Category::getRoot;
87 using log4cpp::Category::setRootPriority;
88 using log4cpp::Category::getRootPriority;
89 using log4cpp::Category::getInstance;
90 using log4cpp::Category::exists;
91 using log4cpp::Category::getCurrentCategories;
92 using log4cpp::Category::shutdown;
93 using log4cpp::Category::getName;
95 using log4cpp::Category::removeAllAppenders;
96 using log4cpp::Category::removeAppender;
97 using log4cpp::Category::addAppender;
98 using log4cpp::Category::setAppender;
100 using log4cpp::Category::getAllAppenders;
102 using log4cpp::Category::debugStream;
103 using log4cpp::Category::infoStream;
104 using log4cpp::Category::noticeStream;
105 using log4cpp::Category::warnStream;
106 using log4cpp::Category::errorStream;
107 using log4cpp::Category::critStream;
108 using log4cpp::Category::emergStream;
109 using log4cpp::Category::fatalStream;
110 using log4cpp::Category::getStream;
111 using log4cpp::Category::operator<<;
113 using log4cpp::Category::callAppenders;
115 using log4cpp::Category::log;
116 using log4cpp::Category::logva;
117 using log4cpp::Category::debug;
118 using log4cpp::Category::info;
119 using log4cpp::Category::notice;
120 using log4cpp::Category::warn;
121 using log4cpp::Category::error;
122 using log4cpp::Category::crit;
123 using log4cpp::Category::alert;
124 using log4cpp::Category::emerg;
125 using log4cpp::Category::fatal;
127 using log4cpp::Category::_logUnconditionally;
128 using log4cpp::Category::_logUnconditionally2;
133 log4cpp::Category* parent,
134 log4cpp::Priority::Value priority = log4cpp::Priority::NOTSET);
147 static std::string convertName(
const std::string& name);
155 static log4cpp::Category* createOCLCategory(
const std::string& name,
156 log4cpp::Category* parent,
157 log4cpp::Priority::Value priority);
162 RTT::OutputPort<OCL::logging::LoggingEvent> log_port;
172 bool connectToLogPort(RTT::base::PortInterface& otherPort);
178 bool connectToLogPort(RTT::base::PortInterface& otherPort,
179 RTT::ConnPolicy& cp);
A mirror of log4cpp::LoggingEvent, except using real-time capable strings.
This is a utility class which you can use to stream messages into a category object.
This component is responsible for reading the logging configuration setting up the logging categories...
The Orocos Component Library.
A real-time capable category.