Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/e/l/eliot-0.3.0/eliot/__init__.py   eliot(Download)
from ._output import ILogger, Logger, MemoryLogger
from ._validation import Field, MessageType, ActionType
from ._traceback import writeTraceback, writeFailure
addDestination = Logger._destinations.add
removeDestination = Logger._destinations.remove

src/e/l/eliot-0.3.0/eliot/tests/test_traceback.py   eliot(Download)
    Failure = None
 
from .._traceback import writeTraceback, writeFailure, _writeTracebackMessage
from ..testing import assertContainsFields, validateLogging
 
            failure = Failure()
            expectedTraceback = failure.getBriefTraceback()
            writeFailure(failure, logger, "some:system")
        message = logger.messages[0]
        assertContainsFields(self, message,
            raise RuntimeError("because")
        except:
            result = writeFailure(Failure(), logger, "some:system")
        self.assertIs(result, None)
        logger.flushTracebacks(RuntimeError)