ArmarXLog.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <SemanticObjectRelations/Hooks/Log.h>
6
7namespace 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
Base Class for all Logging classes.
Definition Logging.h:240
const LogSenderPtr & getLogSender() const
Retrieve log sender.
Definition Logging.cpp:107
static void setAsImplementation(const std::string &tag)
Definition ArmarXLog.cpp:9
ArmarXLog(const std::string &tag="")
Definition ArmarXLog.cpp:14
void log(semrel::LogMetaInfo info, const std::string &message) override
Definition ArmarXLog.cpp:21
std::shared_ptr< LogSender > LogSenderPtr
Typedef of std::shared_ptr for convenience.
Definition Logging.h:224
MessageTypeT
Definition LogSender.h:46