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 NDDS_Config_Logger_set_verbosity_by_service(
55 NDDS_Config_Logger_get_instance(),
56 NDDS_CONFIG_LOG_SERVICE_ROUTING,
57 static_cast<NDDS_Config_LogVerbosity
>(verbosity.underlying()));
67 RTILogBitmap instrumentation_mask =
68 NDDS_Config_Logger_get_verbosity_by_service(
69 NDDS_Config_Logger_get_instance(),
70 NDDS_CONFIG_LOG_SERVICE_ROUTING);
72 return static_cast<rti::config::Verbosity::type
>(instrumentation_mask);
87 void error(
const std::string& msg)
89 this->
error(msg.c_str());
97 this->message(rti::config::LogLevel::EXCEPTION, msg);
111 void warn(
const std::string& msg)
113 this->
warn(msg.c_str());
121 this->message(rti::config::LogLevel::WARNING, msg);
137 this->
local(msg.c_str());
145 this->message(rti::config::LogLevel::STATUS_LOCAL, msg);
161 this->
remote(msg.c_str());
169 this->message(rti::config::LogLevel::STATUS_REMOTE, msg);
185 this->
debug(msg.c_str());
193 this->message(rti::config::LogLevel::STATUS_ALL, msg);
202 void message(
const rti::config::LogLevel& level,
const char* msg)
204 RTI_RoutingServiceLogger_log(
205 static_cast<NDDS_Config_LogLevel
> (level.underlying()),
214 Logger(
const Logger&);
215 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:119
void warn(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:111
void debug(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:183
void error(const char *msg)
overload of error(const std::string& msg)
Definition: Logger.hpp:95
void debug(const char *msg)
overload of debug(const std::string& msg)
Definition: Logger.hpp:191
void error(const std::string &msg)
Logs as message with EXCEPTION level.
Definition: Logger.hpp:87
void remote(const char *msg)
overload of remote(const std::string& msg)
Definition: Logger.hpp:167
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:143
void remote(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:159
void local(const std::string &msg)
Logs as message with WARNING level.
Definition: Logger.hpp:135