LoggingService.hpp
Go to the documentation of this file.
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 
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 log to a category
39  */
40 
41  // Correspond to log4cpp::Priority::PriorityLevel
52 
63  bool setCategoryPriority(const std::string& name, const int priority);
64 
73  std::string getCategoryPriorityName(const std::string& name);
74 
75 protected:
76  // list of all category levels
78  // list of all category additivity values (0 == false == additivity off)
80  // list of appenders per category
82  // list of all active appenders
83  std::vector<std::string> active_appenders;
88  void logCategories();
89 };
90 
91 // namespaces
92 }
93 }
94 
95 #endif
std::vector< std::string > active_appenders
bool setCategoryPriority(const std::string &name, const int priority)
RTT::Property< RTT::PropertyBag > additivity_prop
RTT::Attribute< int > level_NOTICE_attr
RTT::Attribute< int > level_WARN_attr
RTT::Attribute< int > level_ERROR_attr
RTT::Attribute< int > level_NOTSET_attr
RTT::Attribute< int > level_FATAL_attr
RTT::Attribute< int > level_ALERT_attr
LoggingService(std::string name)
RTT::Attribute< int > level_EMERG_attr
RTT::Operation< std::string(std::string)> getCategoryPriorityName_mtd
RTT::Attribute< int > level_DEBUG_attr
RTT::Attribute< int > level_CRIT_attr
RTT::Operation< bool(std::string, int)> setCategoryPriority_mtd
std::string getCategoryPriorityName(const std::string &name)
RTT::Attribute< int > level_INFO_attr
RTT::Property< RTT::PropertyBag > appenders_prop
RTT::Property< RTT::PropertyBag > levels_prop
RTT::Operation< void(void)> logCategories_mtd


ocl
Author(s): OCL Development Team
autogenerated on Wed Jun 26 2019 19:26:27