Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(1)  |  Import(0)
Default observer.

Will ignore all non-error messages and send error messages to sys.stderr.
Will be removed when startLogging() is called for the first time.

src/p/y/python-application-1.4.0/application/log/extensions/twisted/__init__.py   python-application(Download)
    class SimpleObserver(log.DefaultObserver):
        """Use logging as log backend for twisted"""
        def _emit(self, record):
            message = ' '.join(record['message'])
            if record['isError']:

src/u/n/UnitScan-HEAD/twisted/test/test_log.py   UnitScan(Download)
        from StringIO import StringIO
 
        obs = log.DefaultObserver()
        obs.stderr = StringIO()
        obs.start()

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/test/test_log.py   oh-mainline(Download)
        from StringIO import StringIO
 
        obs = log.DefaultObserver()
        obs.stderr = StringIO()
        obs.start()

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/test/test_log.py   SubliminalCollaborator(Download)
        from StringIO import StringIO
 
        obs = log.DefaultObserver()
        obs.stderr = StringIO()
        obs.start()

src/t/w/Twisted-13.2.0/twisted/test/test_log.py   Twisted(Download)
        self.addCleanup(log.removeObserver, self.observer)
 
        obs = log.DefaultObserver()
        obs.stderr = StringIO()
        obs.start()