ArmarXLog.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #include <SemanticObjectRelations/Hooks/Log.h>
6 
7 namespace armarx::semantic
8 {
9 
10  class ArmarXLog : public semrel::LogInterface, public armarx::Logging
11  {
12 
13  public:
14  static void setAsImplementation(const std::string& tag);
15 
16  ArmarXLog(const std::string& tag = "");
17 
18  void log(semrel::LogMetaInfo info, const std::string& message) override;
19 
20  private:
21  armarx::LogSenderPtr getLogSender(const semrel::LogMetaInfo& info);
22  armarx::MessageTypeT logLevelToMessageType(semrel::LogLevel level);
23  };
24 
25 } // namespace armarx::semantic
armarx::MessageTypeT
MessageTypeT
Definition: LogSender.h:45
armarx::semantic::ArmarXLog::log
void log(semrel::LogMetaInfo info, const std::string &message) override
Definition: ArmarXLog.cpp:21
armarx::semantic::ArmarXLog::setAsImplementation
static void setAsImplementation(const std::string &tag)
Definition: ArmarXLog.cpp:9
message
message(STATUS "Boost-Library-Dir: " "${Boost_LIBRARY_DIRS}") message(STATUS "Boost-LIBRARIES
Definition: CMakeLists.txt:8
armarx::semantic::ArmarXLog::ArmarXLog
ArmarXLog(const std::string &tag="")
Definition: ArmarXLog.cpp:14
armarx::semantic::ArmarXLog
Definition: ArmarXLog.h:10
armarx::Logging::getLogSender
const LogSenderPtr & getLogSender() const
Retrieve log sender.
Definition: Logging.cpp:107
armarx::semantic
Definition: ShapesSupportRelations.cpp:32
armarx::Logging
Base Class for all Logging classes.
Definition: Logging.h:239
armarx::LogSenderPtr
std::shared_ptr< LogSender > LogSenderPtr
Typedef of std::shared_ptr for convenience.
Definition: Logging.h:224
armarx::Logging::tag
LogTag tag
Definition: Logging.h:278
Logging.h