Did I find the right examples for you? yes no

All Samples(100)  |  Call(78)  |  Derive(10)  |  Import(12)
Output twisted messages to Python standard library L{logging} module.

WARNING: specific logging configurations (example: network) can lead to
a blocking system. Nothing is done here to prevent that, so be sure to not
use this: code within Twisted, such as twisted.web, assumes that logging
does not block.

src/s/p/spyne-HEAD/examples/twisted/_service.py   spyne(Download)
def initialize(services, tns='spyne.examples.twisted.resource'):
    logging.basicConfig(level=logging.DEBUG)
    logging.getLogger('spyne.protocol.xml').setLevel(logging.DEBUG)
 
    observer = log.PythonLoggingObserver('twisted')

src/t/x/txbom-0.0.2/examples/observations_client.py   txbom(Download)
 
# Send any Twisted log messages to logging logger
_observer = log.PythonLoggingObserver()
_observer.start()
 

src/t/x/txcurrentcost-0.0.3/examples/demo.py   txcurrentcost(Download)
 
    # Send Twisted log messages to logging logger
    _observer = log.PythonLoggingObserver()
    _observer.start()
 

src/t/x/txroutes-0.0.10/txroutes/__init__.py   txroutes(Download)
    log.addHandler(handler)
 
    observer = twisted.python.log.PythonLoggingObserver(loggerName='txroutes')
    observer.start()
 

src/l/a/lala-0.3/lala/main.py   lala(Download)
def getService(options):
    observer = log.PythonLoggingObserver(loggerName="")
    observer.start()
 
    # Set up the config

src/t/x/txroutes-HEAD/txroutes/__init__.py   txroutes(Download)
    log.addHandler(handler)
 
    observer = twisted.python.log.PythonLoggingObserver(loggerName='twisted_routes')
    observer.start()
 

src/t/x/txtorcon-0.9.2/txtorcon/log.py   txtorcon(Download)
def debug_logging():
    stdobserver = twlog.PythonLoggingObserver('txtorcon')
    fileobserver = twlog.FileLogObserver(open('txtorcon.log', 'w'))
 
    txtorlog.addObserver(stdobserver.emit)

src/t/x/txtorcon-HEAD/txtorcon/log.py   txtorcon(Download)
def debug_logging():
    stdobserver = twlog.PythonLoggingObserver('txtorcon')
    fileobserver = twlog.FileLogObserver(open('txtorcon.log', 'w'))
 
    txtorlog.addObserver(stdobserver.emit)

src/s/c/scenic-HEAD/py/scenic/logger.py   scenic(Download)
        logger.addHandler(file_handler)
    if name == 'twisted':
        observer = twisted_log.PythonLoggingObserver(name)
        observer.start()
        return logging.getLogger(name)

src/t/w/twimp-HEAD/twimp/log.py   twimp(Download)
 
    from twisted.python import log
    plo = log.PythonLoggingObserver(TWISTED_CATEGORY)
    log.startLoggingWithObserver(plo.emit, setStdout=redirect_stdout)
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next