RTI Connext TSS C++ API  Version 4.2.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
RTI::TSS::RTI_Logger Class Reference

#include <RTI_Logger.hpp>

Inheritance diagram for RTI::TSS::RTI_Logger:
FACE::Logging

Public Member Functions

 RTI_Logger ()
 Constructor.
virtual ~RTI_Logger ()
 Destructor.
virtual void Log_Text (const FACE::Logging::TEXT_MESSAGE_TYPE &message, FACE::Logging::SEVERITY_LEVEL::Value severity, FACE::RETURN_CODE_TYPE::Value &return_code)
 Log a text message.
virtual void Log_Binary (FACE::SYSTEM_ADDRESS_TYPE message, FACE::Logging::LENGTH_TYPE length, FACE::Logging::SEVERITY_LEVEL::Value severity, FACE::RETURN_CODE_TYPE::Value &return_code)
 Log a binary message.
void Set_Log_File (const std::string &file_path)
 Set log file path (optional - default is stderr)
void Enable_File_Logging (bool enable)
 Enable/disable file logging.
void Set_Suppress_Stderr (bool suppress)
 Suppress stderr output (useful in tests to avoid pipe buffer exhaustion)
- Public Member Functions inherited from FACE::Logging
virtual void Log_Binary (SYSTEM_ADDRESS_TYPE message, LENGTH_TYPE length, SEVERITY_LEVEL::Value severity, RETURN_CODE_TYPE::Value &return_code)=0
 Log a binary message.

Additional Inherited Members

- Public Types inherited from FACE::Logging
typedef STRING_TYPE TEXT_MESSAGE_TYPE
 This type represents a text log message.
typedef UnsignedLong LENGTH_TYPE
 This type is used to represent a size in bytes.

Detailed Description

Pure C++ Logger Implementation No wrappers, no bridging to C - direct implementation of FACE::Logging interface


Constructor & Destructor Documentation

RTI::TSS::RTI_Logger::RTI_Logger ( )

Constructor.

virtual RTI::TSS::RTI_Logger::~RTI_Logger ( )
virtual

Destructor.


Member Function Documentation

virtual void RTI::TSS::RTI_Logger::Log_Text ( const FACE::Logging::TEXT_MESSAGE_TYPE message,
FACE::Logging::SEVERITY_LEVEL::Value  severity,
FACE::RETURN_CODE_TYPE::Value &  return_code 
)
virtual

Log a text message.

Logs a text message with the specified severity level. Output goes to stderr with severity information prepended.

Parameters:
[in]messagecontains the log message to be logged
[in]severityis the severity level from RFC 5424
[out]return_codecontains a status code

Implements FACE::Logging.

virtual void RTI::TSS::RTI_Logger::Log_Binary ( FACE::SYSTEM_ADDRESS_TYPE  message,
FACE::Logging::LENGTH_TYPE  length,
FACE::Logging::SEVERITY_LEVEL::Value  severity,
FACE::RETURN_CODE_TYPE::Value &  return_code 
)
virtual

Log a binary message.

Logs a binary message with the specified severity level. Binary data is output as hex dump.

Parameters:
[in]messagecontains the binary log message to be logged
[in]lengthlength of the binary message
[in]severityis the severity level from RFC 5424
[out]return_codecontains a status code
void RTI::TSS::RTI_Logger::Set_Log_File ( const std::string &  file_path)

Set log file path (optional - default is stderr)

void RTI::TSS::RTI_Logger::Enable_File_Logging ( bool  enable)

Enable/disable file logging.

void RTI::TSS::RTI_Logger::Set_Suppress_Stderr ( bool  suppress)

Suppress stderr output (useful in tests to avoid pipe buffer exhaustion)


RTI Connext TSS C++ API Version 4.2.0 Copyright © Fri Aug 7 2026 Real-Time Innovations, Inc