11#ifndef RTI_ROUTING_LOGGER_HPP_
12#define RTI_ROUTING_LOGGER_HPP_
14#include <dds/core/Reference.hpp>
15#include <rti/config/Logger.hpp>
17#include "routingservice/routingservice_log.h"
18#include "routingservice/routingservice_service.h"
20namespace rti {
namespace routing {
34 typedef rti::config::Verbosity Verbosity;
35 typedef rti::config::LogCategory LogCategory;
36 typedef rti::config::LoggerMode LoggerMode;
37 typedef rti::config::PrintFormat PrintFormat;
54 RTILogBitmap submodule_mask = ROUTER_SUBMODULE_MASK_ALL;
57 static_cast<RTILogBitmap
>(verbosity.underlying()));
67 RTILogBitmap submodule_mask = ROUTER_SUBMODULE_MASK_ALL;
68 RTILogBitmap instrumentation_mask = ROUTER_SUBMODULE_MASK_ALL;
69 ROUTERLog_getBitmaps(&submodule_mask, &instrumentation_mask);
71 return static_cast<rti::config::Verbosity::type
>(instrumentation_mask);
86 void error(
const std::string& msg)
88 this->
error(msg.c_str());
96 this->message(rti::config::LogLevel::EXCEPTION, msg);
110 void warn(
const std::string& msg)
112 this->
warn(msg.c_str());
120 this->message(rti::config::LogLevel::WARNING, msg);
136 this->
local(msg.c_str());
144 this->message(rti::config::LogLevel::STATUS_LOCAL, msg);
160 this->
remote(msg.c_str());
168 this->message(rti::config::LogLevel::STATUS_REMOTE, msg);
184 this->
debug(msg.c_str());
192 this->message(rti::config::LogLevel::STATUS_ALL, msg);
201 void message(
const rti::config::LogLevel& level,
const char* msg)
203 RTI_RoutingServiceLogger_log(
204 static_cast<NDDS_Config_LogLevel
> (level.underlying()),
213 Logger(
const Logger&);
214 Logger& operator=(
const Logger&);
The singleton type used to configure RTI Routing Service verbosity.
Definition: Logger.hpp:31
void warn(const char *msg)
overload of warn(const std::string& msg)
Definition: Logger.hpp:118
void warn(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:110
void debug(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:182
void error(const char *msg)
overload of error(const std::string& msg)
Definition: Logger.hpp:94
void debug(const char *msg)
overload of debug(const std::string& msg)
Definition: Logger.hpp:190
void error(const std::string &msg)
Logs as message with EXCEPTION level.
Definition: Logger.hpp:86
void remote(const char *msg)
overload of remote(const std::string& msg)
Definition: Logger.hpp:166
rti::config::Verbosity service_verbosity()
Getter for the same attribute.
Definition: Logger.hpp:65
void service_verbosity(rti::config::Verbosity verbosity)
Sets the verbosity for the log messages generated at the RTI Routing Service level.
Definition: Logger.hpp:52
void local(const char *msg)
overload of local(const std::string& msg)
Definition: Logger.hpp:142
void remote(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:158
void local(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:134