Did I find the right examples for you? yes no

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)

        def callWithContext(ctx, func, *args, **kw):
    newCtx = context.get(ILogContext).copy()
    newCtx.update(ctx)
    return context.call({ILogContext: newCtx}, func, *args, **kw)
        


src/n/o/nodeset.core-HEAD/src/nodeset/common/log.py   nodeset.core(Download)
def msg(message, *args, **kwargs):
 
    instance = _get_instance()
 
    log.callWithContext({'system': instance}, log.msg, message, *args, 

src/v/u/vumi-HEAD/vumi/sentry.py   vumi(Download)
    def __call__(self, event):
        if self.log_context_sentinel in event:
            return
        log.callWithContext(self.log_context, self._log_to_sentry, event)
 

src/z/o/zope.app.twisted-3.5.0/src/twisted/test/test_log.py   zope.app.twisted(Download)
    def testContext(self):
        catcher = self.catcher
        log.callWithContext({"subsystem": "not the default",
                             "subsubsystem": "a",
                             "other": "c"},

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/test/test_log.py   SubliminalCollaborator(Download)
    def testContext(self):
        catcher = self.catcher
        log.callWithContext({"subsystem": "not the default",
                             "subsubsystem": "a",
                             "other": "c"},

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/test/test_log.py   oh-mainline(Download)
    def testContext(self):
        catcher = self.catcher
        log.callWithContext({"subsystem": "not the default",
                             "subsubsystem": "a",
                             "other": "c"},

src/t/w/Twisted-13.2.0/twisted/test/test_log.py   Twisted(Download)
    def testContext(self):
        catcher = self.catcher
        log.callWithContext({"subsystem": "not the default",
                             "subsubsystem": "a",
                             "other": "c"},

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/test/test_log.py   hortonworks-sandbox(Download)
    def testContext(self):
        catcher = self.catcher
        log.callWithContext({"subsystem": "not the default",
                             "subsubsystem": "a",
                             "other": "c"},

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/test/test_log.py   mythbox(Download)
    def testContext(self):
        catcher = self.catcher
        log.callWithContext({"subsystem": "not the default",
                             "subsubsystem": "a",
                             "other": "c"},

src/u/n/UnitScan-HEAD/twisted/test/test_log.py   UnitScan(Download)
    def testContext(self):
        catcher = self.catcher
        log.callWithContext({"subsystem": "not the default",
                             "subsubsystem": "a",
                             "other": "c"},

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/conch/test/test_ssh.py   hortonworks-sandbox(Download)
 
        while self.serverTransport.buffer or self.clientTransport.buffer:
            log.callWithContext({'system': 'serverTransport'},
                                self.serverTransport.clearBuffer)
            log.callWithContext({'system': 'clientTransport'},

  1 | 2  Next