t.i.a._LogOwner(object) : class documentation

Part of twisted.internet.abstract View Source View In Hierarchy

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

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 _getLogPrefix(self, applicationObject): (source)
Determine the log prefix to use for messages related to applicationObject, which may or may not be an interfaces.ILoggingContext provider.
ReturnsA str giving the log prefix to use.
def logPrefix(self): (source)
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.
API Documentation for Twisted, generated by pydoctor at 2014-05-12 18:27:00.