l.s.t.l.LoggingProxy(xmlrpc.Proxy) : class documentation

Part of lp.services.twistedsupport.loggingsupport View In Hierarchy

A proxy that logs requests and the corresponding responses.
Method __init__ Contstruct a LoggingProxy.
Method callRemote See xmlrpc.Proxy.callRemote.
def __init__(self, url, logger, level=logging.INFO):
Contstruct a LoggingProxy.
ParametersurlThe URL to which to post method calls.
loggerThe logger to log requests and responses to.
levelThe log level at which to log requests and responses.
def callRemote(self, method, *args):
See xmlrpc.Proxy.callRemote.

In addition to the superclass' behaviour, we log the call and its result.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.