RTI Recording Service  Version 6.1.1
rti::recording::Logger Class Reference

The singleton type used to configure RTI Recording Service verbosity. More...

#include <Logger.hpp>

Public Member Functions

void error (const std::string &msg)
 Logs as message with EXCEPTION level. More...
 
void error (const char *msg)
 overload of error(const std::string& msg) More...
 
void warn (const std::string &msg)
 Logs as message with WARNING level. More...
 
void warn (const char *msg)
 overload of warn(const std::string& msg) More...
 
void local (const std::string &msg)
 Logs as message with WARNING level. More...
 
void local (const char *msg)
 overload of local(const std::string& msg) More...
 
void remote (const std::string &msg)
 Logs as message with WARNING level. More...
 
void remote (const char *msg)
 overload of remote(const std::string& msg) More...
 
void debug (const std::string &msg)
 Logs as message with WARNING level. More...
 
void debug (const char *msg)
 overload of debug(const std::string& msg) More...
 
void service_verbosity (rti::config::Verbosity verbosity)
 Sets the verbosity for the log messages generated at the RTI Recording Service level. More...
 
rti::config::Verbosity service_verbosity ()
 Getter for the same attribute. More...
 
void verbosity (rti::config::Verbosity verbosity)
 
rti::config::Verbosity verbosity ()
 

Detailed Description

The singleton type used to configure RTI Recording Service verbosity.

For configuring other aspects such as output file, print format or RTI Connext specific logging, use rti::config::Logger.

Member Function Documentation

◆ error() [1/2]

void rti::recording::Logger::error ( const std::string &  msg)

Logs as message with EXCEPTION level.

The generated log will be part of logging stream of the running service if the service verbosity contains EXCEPTION messages. The result log message may include additional information according to the Connext logging configuration, such as Advlog Context, thread ID, line number, etc. Additionally, the result log message will contain a newline character at the end, so the format does not need to contain it.

Parameters
[in]msgMessage to be logged

◆ error() [2/2]

void rti::recording::Logger::error ( const char *  msg)

◆ warn() [1/2]

void rti::recording::Logger::warn ( const std::string &  msg)

Logs as message with WARNING level.

This operation behaves similar to error() except the log level is WARNING.

Parameters
[in]msgMessage to be logged
See also
rti::recording::Logger::error

◆ warn() [2/2]

void rti::recording::Logger::warn ( const char *  msg)

◆ local() [1/2]

void rti::recording::Logger::local ( const std::string &  msg)

Logs as message with WARNING level.

This operation behaves similar to error() except the log level is STATUS_LOCAL.

Parameters
[in]msgMessage to be logged
See also
rti::recording::Logger::error

◆ local() [2/2]

void rti::recording::Logger::local ( const char *  msg)

◆ remote() [1/2]

void rti::recording::Logger::remote ( const std::string &  msg)

Logs as message with WARNING level.

This operation behaves similar to error() except the log level is STATUS_REMOTE.

Parameters
[in]msgMessage to be logged
See also
rti::recording::Logger::error

◆ remote() [2/2]

void rti::recording::Logger::remote ( const char *  msg)

◆ debug() [1/2]

void rti::recording::Logger::debug ( const std::string &  msg)

Logs as message with WARNING level.

This operation behaves similar to error() except the log level is STATUS_DEBUG.

Parameters
[in]msgMessage to be logged
See also
rti::recording::Logger::error

◆ debug() [2/2]

void rti::recording::Logger::debug ( const char *  msg)

◆ service_verbosity() [1/2]

void rti::recording::Logger::service_verbosity ( rti::config::Verbosity  verbosity)

Sets the verbosity for the log messages generated at the RTI Recording Service level.

Parameters
[in]verbosityThe verbosity of the service logs

◆ service_verbosity() [2/2]

rti::config::Verbosity rti::recording::Logger::service_verbosity ( )

Getter for the same attribute.

See also
verbosity(rti::config::Verbosity)

◆ verbosity() [1/2]

void rti::recording::Logger::verbosity ( rti::config::Verbosity  verbosity)

[DEPRECATED]

See also
service_verbosity

◆ verbosity() [2/2]

rti::config::Verbosity rti::recording::Logger::verbosity ( )

[DEPRECATED]

See also
service_verbosity