16#include "rti_dl/rti_dl_dll_c.h"
17#include "log/log_dll.h"
18#include "osapi/osapi_type.h"
19#include "ndds/ndds_c.h"
20#include "ndds/ndds_config_c.h"
22#include "dds_c/dds_c_log_impl.h"
23#include "dds_c/dds_c_infrastructure.h"
29#define RTI_DL_DEFAULT_QUEUE_SIZE 128
30#define RTI_DL_DEFAULT_DOMAIN_ID 0
32#define COMMAND_REQUEST_CONTENT_FILTERED_TOPIC_EXPRESSION \
33 "targetHostAndAppId.rtps_host_id = %0 and targetHostAndAppId.rtps_app_id = " \
35#define COMMAND_REQUEST_CONTENT_FILTERED_TOPIC_NAME \
36 "CommandRequestContentFilteredTopic"
42#define RTI_DL_DistLogger_MessageParams_INITIALIZER \
44 0, NULL, NULL, DDS_TIME_INVALID_VALUE \
112typedef struct RTI_DL_DDSEntities RTI_DL_DDSEntities;
168 DDS_DomainParticipantFactory *domainParticipantFactory);
300 NDDS_Config_LogVerbosity verbosity);
340 const char *category);
365 const char *message);
377 const char *message);
389 const char *message);
401 const char *message);
413 const char *message);
425 const char *message);
437 const char *message);
449 const char *message);
462 int logLevel,
const char *message);
555typedef struct RTI_DL_LogMessageWriteThread LogMessageWriteThread;
624extern RTIDLCDllExport DDS_DomainParticipant *
651 RTI_DL_Options * self, DDS_DomainParticipant * domainParticipant);
683extern RTIDLCDllExport DDS_ReturnCode_t
710extern RTIDLCDllExport DDS_ReturnCode_t
887extern RTIDLCDllExport
struct DDS_ThreadSettings_t *
905 const struct DDS_ThreadSettings_t * threadSettings);
995extern RTIDLCDllExport
1007extern RTIDLCDllExport
1008void RTI_DL_DistLogger_disable(
void);
DDS_ReturnCode_t RTI_DL_DistLogger_setFilterLevel(RTI_DL_DistLogger *self, DDS_Long newLevel)
Sets the filter level for the singleton.
void RTI_DL_DistLogger_logMessageWithParams(RTI_DL_DistLogger *self, const struct RTI_DL_DistLogger_MessageParams *params)
Performs the same function as RTI_DL_DistLogger_logMessageWithLevelCategory except that it also allow...
void RTI_DL_DistLogger_error(RTI_DL_DistLogger *self, const char *message)
Logs a error message.
RTIBool RTI_DL_DistLogger_setRTILoggerPrintFormat(RTI_DL_DistLogger *self, NDDS_Config_LogPrintFormat logPrintFormat)
Sets PrintFormat of RTI Logger to the provided value.
void RTI_DL_DistLogger_log(RTI_DL_DistLogger *self, int logLevel, const char *message)
Logs a message.
void RTI_DL_DistLogger_info(RTI_DL_DistLogger *self, const char *message)
Logs a info message.
void RTI_DL_DistLogger_trace(RTI_DL_DistLogger *self, const char *message)
Logs a trace message.
DDS_Long RTI_DL_DistLogger_get_info_log_level(void)
Return Info log level.
DDS_ReturnCode_t RTI_DL_DistLogger_finalizeInstance(void)
Finalizes and deletes the RTI Distributed Logger singleton.
void RTI_DL_DistLogger_notice(RTI_DL_DistLogger *self, const char *message)
Logs a notice message.
void RTI_DL_DistLogger_severe(RTI_DL_DistLogger *self, const char *message)
Logs a severe message.
void RTI_DL_DistLogger_debug(RTI_DL_DistLogger *self, const char *message)
Logs a debug message.
RTI_DL_DistLogger * RTI_DL_DistLogger_getInstance(void)
Provides access to the RTI_DL_DistLogger singleton.
void RTI_DL_DistLogger_warning(RTI_DL_DistLogger *self, const char *message)
Logs a warning message.
DDS_Long RTI_DL_DistLogger_get_warning_log_level(void)
Return Warning log level.
RTIBool RTI_DL_DistLogger_setRTILoggerVerbosityByCategory(RTI_DL_DistLogger *self, NDDS_Config_LogCategory category, NDDS_Config_LogVerbosity verbosity)
Updates the LogCategory and the LogVerbosity in RTI Logger to the provided value.
RTIBool RTI_DL_DistLogger_setOptions(const RTI_DL_Options *options)
Assigns configurable options to RTI Distributed Logger before its creation.
DDS_Long RTI_DL_DistLogger_get_fatal_log_level(void)
Return Fatal log level.
void RTI_DL_DistLogger_logMessageWithLevelCategory(RTI_DL_DistLogger *self, int logLevel, const char *message, const char *category)
Logs a message at the specified level and with the specified category.
DDS_Long RTI_DL_DistLogger_get_notice_log_level(void)
Return Notice log level.
DDS_Long RTI_DL_DistLogger_get_error_log_level(void)
Return Error log level.
void RTI_DL_DistLogger_fatal(RTI_DL_DistLogger *self, const char *message)
Logs a fatal message.
DDS_Long RTI_DL_DistLogger_get_debug_log_level(void)
Return Debug log level.
RTIBool RTI_DL_Options_isRemoteAdministrationEnabled(RTI_DL_Options *self)
Indicates whether remote administration is enabled or not.
RTI_DL_Options * RTI_DL_Options_delete(RTI_DL_Options *self)
Releases memory for a RTI_DL_Options. Checks whether the pointer exists or not.
RTI_DL_Options * RTI_DL_Options_createDefault(void)
Allocates memory for a RTI_DL_Options struct and sets the default values needed to create the Distrib...
RTIBool RTI_DL_Options_copy(RTI_DL_Options *self, const RTI_DL_Options *other)
Create a copy of a RTI Distributed Logger options instance.
DDS_ReturnCode_t RTI_DL_Options_setApplicationKind(RTI_DL_Options *self, const char *applicationKind)
Sets the application kind that will be associated with RTI Distributed Logger.
DDS_ReturnCode_t RTI_DL_Options_setEchoToStdout(RTI_DL_Options *self, RTIBool echoToStdout)
Sets the value of echoToStdout flag.
char * RTI_DL_Options_getQosLibrary(RTI_DL_Options *self)
Gets the Qos Library that will be used to create to RTI Distributed Logger.
void RTI_DL_Options_finalize(RTI_DL_Options *self)
Finalizes an RTI_DL_Options struct. Checks whether the pointer exists or not. Does not release memory...
DDS_ReturnCode_t RTI_DL_Options_setQosProfile(RTI_DL_Options *self, const char *qosProfile)
Sets the Qos Profile that will be used to create to RTI Distributed Logger.
DDS_ReturnCode_t RTI_DL_Options_setDomainId(RTI_DL_Options *self, int domainId)
Sets the current Domain ID.
DDS_ReturnCode_t RTI_DL_Options_setThreadSettings(RTI_DL_Options *self, const struct DDS_ThreadSettings_t *threadSettings)
Sets the settings of the publishing thread that will be created by RTI Distributed Logger.
DDS_ReturnCode_t RTI_DL_Options_setLogInfrastructureMessages(RTI_DL_Options *self, RTIBool log)
Enables or disables automatic logging of infrastructure messages.
RTIBool RTI_DL_Options_equals(const RTI_DL_Options *self, const RTI_DL_Options *other)
Checks for equality between two RTI_DL_Options objects.
char * RTI_DL_Options_getQosProfile(RTI_DL_Options *self)
Gets the Qos Profile that will be used to create to RTI Distributed Logger.
DDS_ReturnCode_t RTI_DL_Options_setFilterLevel(RTI_DL_Options *self, int filterLevel)
Sets the log filter level.
DDS_ReturnCode_t RTI_DL_Options_setQueueSize(RTI_DL_Options *self, int queueSize)
Sets the maximum queue size that will be assigned to RTI Distributed Logger.
DDS_ReturnCode_t RTI_DL_Options_setDomainParticipant(RTI_DL_Options *self, DDS_DomainParticipant *domainParticipant)
Sets the DomainParticipant to be used to create RTI Distributed Logger internal entities.
DDS_ReturnCode_t RTI_DL_Options_setQosLibrary(RTI_DL_Options *self, const char *qosLibrary)
Sets the Qos Library that will be used to create to RTI Distributed Logger.
struct DDS_ThreadSettings_t * RTI_DL_Options_getThreadSettings(RTI_DL_Options *self)
Gets the thread settings of the publishing thread that will be created by RTI Distributed Logger.
RTIBool RTI_DL_Options_getEchoToStdout(RTI_DL_Options *self)
Gets the current value of echoToStdout option.
void RTI_DL_Options_initialize(RTI_DL_Options *self)
Initializes a RTI_DL_Options struct with the default values needed to create the Distributed Logger.
RTIBool RTI_DL_Options_getLogInfrastructureMessages(RTI_DL_Options *self)
Indicates whether Distributed Logger should also log all messages produced by infrastructure code aut...
int RTI_DL_Options_getFilterLevel(RTI_DL_Options *self)
Gets the log filter level.
DDS_ReturnCode_t RTI_DL_Options_setRemoteAdministrationEnabled(RTI_DL_Options *self, RTIBool enabled)
Enables or disables remote administration.
int RTI_DL_Options_getQueueSize(RTI_DL_Options *self)
Gets the maximum queue size that will be assigned to RTI Distributed Logger.
char * RTI_DL_Options_getApplicationKind(RTI_DL_Options *self)
Gets the application kind that will be associated with RTI Distributed Logger.
DDS_DomainParticipant * RTI_DL_Options_getDomainParticipant(RTI_DL_Options *self)
Gets the current DomainParticipant that will be used to create the RTI Distributed Logger's internal ...
int RTI_DL_Options_getDomainId(RTI_DL_Options *self)
Gets the current Domain ID.
void RTI_DL_Utility_sleep(int ms)
Blocks the calling thread for the specified duration.
Input parameters for RTI_DL_DistLogger_logMessageWithParams.
Definition: rti_dl_c.h:306
const char * message
Definition: rti_dl_c.h:315
struct DDS_Time_t timestamp
Definition: rti_dl_c.h:325
int log_level
Definition: rti_dl_c.h:310
const char * category
Definition: rti_dl_c.h:320
Struct defining RTI Distributed Logger singleton.
This struct contains all RTI Distributed Logger's configurable options.