RTC Toolkit  2.0.0
Public Member Functions | List of all members
comms.logs.RtcLogsLocalImpl Class Reference

Provides LogWidget local URIs compatible with :class:LogsWidget More...

Inheritance diagram for comms.logs.RtcLogsLocalImpl:
comms.logs.RtcLogs

Public Member Functions

def __init__ (self, QObject parent=None)
 
str get_logs_uri (self, str component_name)
 Returns the URI of the logs for a specific component_name. More...
 
- Public Member Functions inherited from comms.logs.RtcLogs
def __init__ (self, parent=None)
 

Additional Inherited Members

- Static Public Attributes inherited from comms.logs.RtcLogs
 failure_detected = Signal([str], [str, object])
 Signal that indicates a failure was detected while obtained deployment data. More...
 

Detailed Description

Provides LogWidget local URIs compatible with :class:LogsWidget

Implements the :class:RtcLogs interface, which allows the Control and Monitoring Tool to located the logs for specific components.

:param parent: Parent object. :type parent: :class:PySide2.QtCore.QObject

Constructor & Destructor Documentation

◆ __init__()

def comms.logs.RtcLogsLocalImpl.__init__ (   self,
QObject   parent = None 
)

Member Function Documentation

◆ get_logs_uri()

str comms.logs.RtcLogsLocalImpl.get_logs_uri (   self,
str  component_name 
)

Returns the URI of the logs for a specific component_name.

   :param component_name: RTC Component name.
   :type component_name: str
   :raises ValueError: Could not construct path to logs location.
   :returns: URI for the location of the logs
   :rtype: str
Note
follows this logs directories priorities: $CII_LOGS, /var/log/elt TODO Check if component_name is even in the deployment This would add dependency to deployment data.

Reimplemented from comms.logs.RtcLogs.


The documentation for this class was generated from the following file: