rti.logging

Submodules

rti.logging.distlog module

class rti.logging.distlog.LogLevel

Bases: pybind11_builtins.pybind11_object

Members:

SILENT

FATAL

SEVERE

ERROR

WARNING

NOTICE

INFO

DEBUG

TRACE

DEBUG = <LogLevel.DEBUG: 700>
ERROR = <LogLevel.ERROR: 300>
FATAL = <LogLevel.FATAL: 100>
INFO = <LogLevel.INFO: 600>
NOTICE = <LogLevel.NOTICE: 500>
SEVERE = <LogLevel.SEVERE: 200>
SILENT = <LogLevel.SILENT: 0>
TRACE = <LogLevel.TRACE: 800>
WARNING = <LogLevel.WARNING: 400>
property name
property value
class rti.logging.distlog.Logger

Bases: pybind11_builtins.pybind11_object

static debug(message: str) → None

Log a debug message.

static error(message: str) → None

Log an error message.

static fatal(message: str) → None

Log a fatal message.

static filter_level(level: rti.logging.distlog.LogLevel) → None

The logger filter level.

static finalize() → None

Destroy the Logger. It should not be accessed after this call.

static info(message: str) → None

Log an info message.

static init(options: Optional[rti.logging.distlog.LoggerOptions] = None) → None

Initializes the distributed logger

static log(*args, **kwargs)

Overloaded function.

  1. log(log_level: rti.logging.distlog.LogLevel, message: str) -> None

Log a message with the given log level.

  1. log(log_level: rti.logging.distlog.LogLevel, message: str, category: str) -> None

Log a message with the given log level and category.

  1. log(message_params: rti.logging.distlog.MessageParams) -> None

Log a message with the given message parameters.

static notice(message: str) → None

Log a notice message.

static print_format(format: rti.connextdds.PrintFormat) → None

The logger print format.NOTE: This will affect the print format of the associatedDomainParticipant’s logger as well.

static severe(message: str) → None

Log a severe message.

static trace(message: str) → None

Log a trace message.

static verbosity(category: rti.connextdds.LogCategory, level: rti.connextdds.Verbosity) → None

The logger’s verbosity.NOTE: This will affect the verbosity of the associatedDomainParticipant’s logger as well.

static warning(message: str) → None

Log a warning message.

class rti.logging.distlog.LoggerOptions

Bases: pybind11_builtins.pybind11_object

property application_kind

The application_kind.

property domain_id

The domain ID for logging.

property echo_to_stdout

Toggle for echo to stdout.

property filter_level

Toggle for log filter level.

property log_infrastructure_messages

Toggle for logging infrastructure messages.

property participant

The DomainParticipant to use for the logger.

property qos_library

The QoS library name.

property qos_profile

The QoS profile name.

property queue_size

The logger’s queue size.

property remote_administration_enabled

Toggle for remote administration.

property thread_settings

The settings for the thread handling logging.

class rti.logging.distlog.MessageParams

Bases: pybind11_builtins.pybind11_object

property category

The log message category.

property log_level

The message log level.

property message

The log message.

property timestamp

The timestamp of the log message.

rti.logging.handler module

class rti.logging.handler.DistlogHandler(options: Optional[rti.logging.distlog.LoggerOptions] = None)

Bases: logging.Handler

close() → None

Tidy up any resources used by the handler.

This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods.

emit(record: logging.LogRecord) → None

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

Module contents