#include <RTI_Logger.hpp>
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)
|
| 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.
|
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 |
( |
| ) |
|
| virtual RTI::TSS::RTI_Logger::~RTI_Logger |
( |
| ) |
|
|
virtual |
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] | message | contains the log message to be logged |
| [in] | severity | is the severity level from RFC 5424 |
| [out] | return_code | contains 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] | message | contains the binary log message to be logged |
| [in] | length | length of the binary message |
| [in] | severity | is the severity level from RFC 5424 |
| [out] | return_code | contains 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)