Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`internet`.`abstract`.`_LogOwner``

class documentation

`class _LogOwner: (source)`

Known subclasses: `twisted.internet.abstract.FileDescriptor`, `twisted.internet.iocpreactor.abstract.FileHandle`, `twisted.internet.iocpreactor.tcp.Port`

Implements interfaces: `twisted.internet.interfaces.ILoggingContext`

View In Hierarchy

Mixin to help implement `interfaces.ILoggingContext` for transports which have a protocol, the log prefix of which should also appear in the transport's log prefix.

Method | `logPrefix` | Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines.
Method | `_getLogPrefix` | Determine the log prefix to use for messages related to `applicationObject`, which may or may not be an `interfaces.ILoggingContext` provider.

def logPrefix(self): (source)
from `twisted.internet.interfaces.ILoggingContext`
overridden in `twisted.internet.iocpreactor.tcp.Connection`, `twisted.internet.iocpreactor.tcp.Port`, `twisted.internet.iocpreactor.udp.Port`, `twisted.internet.tcp.Connection`, `twisted.internet.tcp.Port`, `twisted.internet.udp.Port`, `twisted.pair.tuntap.TuntapPort`

Override this method to insert custom logging behavior. Its return value will be inserted in front of every line. It may be called more times than the number of output lines.

def _getLogPrefix(self, applicationObject): (source)
overridden in `twisted.internet.ssl.Port`

Determine the log prefix to use for messages related to `applicationObject`, which may or may not be an `interfaces.ILoggingContext` provider.

Parameters
applicationObject:`object` | Undocumented
Returns
`str` | A `str` giving the log prefix to use.