Index

Package: Logger

Description

package Logger is

Classes

Ref

type Ref is new RTIDDS.Obj_Impl.Ref with null record;

Primitive operations:

Get_Instance
get_print_format
get_verbosity
Get_Verbosity
Set_output_device
Set_print_format
Set_Verbosity
Set_Verbosity

Types

Ref_Access

type Ref_Access is access all Ref'Class;

LoggerDevice_Interface (abstract)

type LoggerDevice_Interface is limited interface;

Subprograms & Entries

Get_Instance

function  Get_Instance return access Ref;

Summary: Get the singleton instance of this type.

Get_Verbosity

function Get_Verbosity 
(This: not null access Ref) return RTIDDS.Config.LogVerbosity;

Summary: Get the verbosity at which RTI Connext is currently logging diagnostic information.

The default verbosity if NDDSConfigLogger.set_verbosity is never called is NDDS_CONFIG_LOG_VERBOSITY_ERROR.

If NDDSConfigLogger.set_verbosity_by_category has been used to set different verbosities for different categories of messages, this procedure will return the maximum verbosity of all categories.

get_verbosity

function get_verbosity 
(This: not null access Ref;
Category: in RTIDDS.Config.LogCategory) return RTIDDS.Config.LogVerbosity;

Summary: Get the verbosity at which RTI Connext is currently logging diagnostic information in the given category.

The default verbosity if NDDSConfigLogger.set_verbosity and NDDSConfigLogger.set_verbosity_by_category are never called is NDDS_CONFIG_LOG_VERBOSITY_ERROR.

Set_Verbosity

procedure Set_Verbosity 
(This: not null access Ref;
Verbosity: in RTIDDS.Config.LogVerbosity);

Summary: Set the verbosity at which RTI Connext will log diagnostic information.

Note: Logging at high verbosities will be detrimental to your application's performance. Your default setting should typically remain at NDDS_CONFIG_LOG_VERBOSITY_WARNING or below. (The default verbosity if you never set it is NDDS_CONFIG_LOG_VERBOSITY_ERROR.)

Set_Verbosity

procedure Set_Verbosity 
(This: not null access Ref;
Category: in RTIDDS.Config.LogCategory;
Verbosity: in RTIDDS.Config.LogVerbosity);

Summary: Set the verbosity at which RTI Connext will log diagnostic information in the given category.

get_print_format

function get_print_format 
(This: not null access Ref) return RTIDDS.Config.LogPrintFormat;

Summary: Get the current message format that RTI Connext is using to log diagnostic information of the most common log level NDDS_CONFIG_LOG_LEVEL_ERROR.

If NDDSConfigLogger.set_print_format is never called, the default format is NDDS_CONFIG_LOG_PRINT_FORMAT_DEFAULT.

Set_print_format

procedure Set_print_format 
(This: not null access Ref;
format: RTIDDS.Config.LogPrintFormat);

Summary: Set the message format that RTI Connext will use to log diagnostic information for all the log levels.

Write (abstract)

procedure Write 
(Self: LoggerDevice_Interface;
text: Standard.String;
level: LogVerbosity) is abstract;

Close

procedure Close 
(self: LoggerDevice_Interface) is null;

GetDevice (abstract)

function GetDevice 
(Self: access LoggerDevice_Interface) return access RTIDDS.Low_Level.ndds_ndds_config_c_h.NDDS_Config_LoggerDevice is abstract;

GetLogger (abstract)

function GetLogger 
(Self: access LoggerDevice_Interface) return RTIDDS.Config.Logger.Ref_Access is abstract;

Set_output_device

procedure Set_output_device 
(Self: not null access RTIDDS.Config.Logger.Ref;
device: access LoggerDevice_Interface'Class);