OrocosComponentLibrary  2.9.0
LoggingService.hpp
1 #ifndef LOGGINGSERVICE_HPP
2 #define LOGGINGSERVICE_HPP 1
3 
4 #include <rtt/TaskContext.hpp>
5 #include <rtt/PropertyBag.hpp>
6 #include <rtt/Operation.hpp>
7 
8 namespace OCL {
9 namespace logging {
10 
23 class LoggingService : public RTT::TaskContext
24 {
25 public:
26  LoggingService(std::string name);
27  virtual ~LoggingService();
28 
29  virtual bool configureHook();
30 
31  /* \todo
32 
33  configuration of this component
34  - specify category for this component to log to
35  - specify priority of logging of this component
36 
37  services for other components
38  - method to set priority of any category
39  - method to get priority of any category
40  - method to log to a category
41  */
42 
43 protected:
44  // list of all category levels
45  RTT::Property<RTT::PropertyBag> levels_prop;
46  // list of all category additivity values (0 == false == additivity off)
47  RTT::Property<RTT::PropertyBag> additivity_prop;
48  // list of appenders per category
49  RTT::Property<RTT::PropertyBag> appenders_prop;
50  // list of all active appenders
51  std::vector<std::string> active_appenders;
55  RTT::Operation<void(void)> logCategories_mtd;
56  void logCategories();
57 };
58 
59 // namespaces
60 }
61 }
62 
63 #endif
This component is responsible for reading the logging configuration setting up the logging categories...
RTT::Operation< void(void)> logCategories_mtd
Log all categories.
The Orocos Component Library.
Definition: Component.hpp:43