Did I find the right examples for you? yes no

All Samples(42)  |  Call(41)  |  Derive(0)  |  Import(1)
Class for singleton log message publishing.

src/t/x/txtorcon-0.9.2/txtorcon/log.py   txtorcon(Download)
__all__ = ['txtorlog']
 
txtorlog = twlog.LogPublisher()
 
 

src/t/x/txtorcon-HEAD/txtorcon/log.py   txtorcon(Download)
__all__ = ['txtorlog']
 
txtorlog = twlog.LogPublisher()
 
 

src/v/u/vumi-HEAD/vumi/tests/test_sentry.py   vumi(Download)
from twisted.web import http
from twisted.python.failure import Failure
from twisted.python.log import LogPublisher
 
from vumi.tests.utils import MockHttpServer, LogCatcher
    def setUp(self):
        import vumi.sentry
        self.client = DummySentryClient()
        self.patch(vumi.sentry, 'vumi_raven_client', lambda dsn: self.client)
        self.logger = LogPublisher()

src/t/w/twixxy-HEAD/twixxy/tests/test_observer.py   twixxy(Download)
    def setUp(self):
        self.out = stringIOTwiggySetup()
 
        self.lp = log.LogPublisher()
        self.obs = TwiggyLoggingObserver()

src/u/n/UnitScan-HEAD/twisted/trial/test/test_runner.py   UnitScan(Download)
        # Something better needs to happen inside
        # TrialRunner._runWithoutDecoration to remove the need for this cludge.
        r._log = log.LogPublisher()
        return r
 

src/u/n/UnitScan-HEAD/twisted/trial/test/test_reporter.py   UnitScan(Download)
    def setUp(self):
        self.test = sample.FooTest('test_foo')
        self.stream = StringIO.StringIO()
        self.publisher = log.LogPublisher()
        self.result = self.resultFactory(self.stream, publisher=self.publisher)

src/u/n/UnitScan-HEAD/twisted/test/test_log.py   UnitScan(Download)
        events = []
        errors = []
        publisher = log.LogPublisher()
 
        class FailingObserver(object):
        to the Twisted logging system.
        """
        publisher = log.LogPublisher()
        publisher.addObserver(self.observer)
 
            raise RuntimeError("test_publisherLocalyReportsBrokenObservers")
 
        publisher = log.LogPublisher()
        publisher.addObserver(logError)
        publisher.addObserver(fail)
        """
        self.out = FakeFile()
        self.lp = log.LogPublisher()
        self.flo = log.FileLogObserver(self.out)
        self.lp.addObserver(self.flo.emit)
        rootLogger.addHandler(self.hdlr)
 
        self.lp = log.LogPublisher()
        self.obs = log.PythonLoggingObserver()
        self.lp.addObserver(self.obs.emit)

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/trial/test/test_runner.py   mythbox(Download)
        # Something better needs to happen inside
        # TrialRunner._runWithoutDecoration to remove the need for this cludge.
        r._log = log.LogPublisher()
        return r
 

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/trial/test/test_reporter.py   mythbox(Download)
    def setUp(self):
        from twisted.trial.test import sample
        self.test = sample.FooTest('test_foo')
        self.stream = StringIO.StringIO()
        self.publisher = log.LogPublisher()

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/test/test_log.py   mythbox(Download)
        to the Twisted logging system.
        """
        publisher = log.LogPublisher()
        publisher.addObserver(self.observer)
 
        """
        self.out = FakeFile()
        self.lp = log.LogPublisher()
        self.flo = log.FileLogObserver(self.out)
        self.lp.addObserver(self.flo.emit)
        rootLogger.addHandler(self.hdlr)
 
        self.lp = log.LogPublisher()
        self.obs = log.PythonLoggingObserver()
        self.lp.addObserver(self.obs.emit)

  1 | 2 | 3  Next