Skip to content
Snippets Groups Projects
Unverified Commit 0b298761 authored by Drew Devereux's avatar Drew Devereux
Browse files

[MCCS-659] RST docstring fixes

parent 5bd76c72
No related branches found
No related tags found
No related merge requests found
...@@ -208,26 +208,43 @@ class LoggingUtils: ...@@ -208,26 +208,43 @@ class LoggingUtils:
""" """
Parse syslog URL and extract address and socktype parameters for SysLogHandler. Parse syslog URL and extract address and socktype parameters for SysLogHandler.
:param url: :param url: Universal resource locator string for syslog target.
Universal resource locator string for syslog target. Three types are supported: Three types are supported: file path, remote UDP server,
file path, remote UDP server, remote TCP server. remote TCP server.
- Output to a file: 'file://<path to file>'
Example: 'file:///dev/log' will write to '/dev/log' - Output to a file: 'file://<path to file>'. For example,
- Output to remote server over UDP: 'udp://<hostname>:<port>' 'file:///dev/log' will write to '/dev/log'.
Example: 'udp://syslog.com:514' will send to host 'syslog.com' on UDP port 514
- Output to remote server over TCP: 'tcp://<hostname>:<port>' - Output to remote server over UDP:
Example: 'tcp://rsyslog.com:601' will send to host 'rsyslog.com' on TCP port 601 'udp://<hostname>:<port>'. For example,
For backwards compatibility, if the protocol prefix is missing, the type is 'udp://syslog.com:514' will send to host 'syslog.com' on
interpreted as file. This is deprecated. UDP port 514
- Example: '/dev/log' is equivalent to 'file:///dev/log'
- Output to remote server over TCP:
:return: (address, socktype) 'tcp://<hostname>:<port>'. For example,
'tcp://rsyslog.com:601' will send to host 'rsyslog.com' on
TCP port 601
For backwards compatibility, if the protocol prefix is
missing, the type is interpreted as file. This is
deprecated. For example, '/dev/log' is equivalent to
'file:///dev/log'.
:return: An (address, socktype) tuple.
For file types: For file types:
- address is the file path as as string
- the address is the file path as as string
- socktype is None - socktype is None
For UDP and TCP: For UDP and TCP:
- address is tuple of (hostname, port), with hostname a string, and port an integer.
- socktype is socket.SOCK_DGRAM for UDP, or socket.SOCK_STREAM for TCP. - the address is tuple of (hostname, port), with hostname a
string, and port an integer.
- socktype is socket.SOCK_DGRAM for UDP, or
socket.SOCK_STREAM for TCP.
:raises LoggingTargetError: for invalid url string :raises LoggingTargetError: for invalid url string
""" """
...@@ -1443,7 +1460,7 @@ class SKABaseDevice(Device): ...@@ -1443,7 +1460,7 @@ class SKABaseDevice(Device):
Enable remote debugging of this device. Enable remote debugging of this device.
To modify behaviour for this command, modify the do() method of To modify behaviour for this command, modify the do() method of
the command class: :class:`.DebugDeviceCommand`. the command class: :py:class:`.DebugDeviceCommand`.
""" """
command = self.get_command_object("DebugDevice") command = self.get_command_object("DebugDevice")
return command() return command()
......
...@@ -142,7 +142,7 @@ class ReferenceSubarrayComponentManager( ...@@ -142,7 +142,7 @@ class ReferenceSubarrayComponentManager(
:return: whether this resource pool contains the specified :return: whether this resource pool contains the specified
resources resources
:rtype bool :rtype: bool
""" """
return resources in self._resources return resources in self._resources
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment