My problem is that PyAmf uses the standard Python logging module and twisted uses it&#39;s own logging module.&nbsp; I would like to have a single logging mechanism that can be specified via twistd.&nbsp; I would also like to have more control of the output of the twisted log.&nbsp; After googling and reading Glyph&#39;s essay on the logging module (<a href="http://twistedmatrix.com/trac/wiki/TwistedLogging">http://twistedmatrix.com/trac/wiki/TwistedLogging</a>) I have came up with two solutions:<br>
<br>1) Simply configure the logging module with a logging.Handler subclass that outputs to twisted.python.log.msg.&nbsp; I can then add a custom LoggingObserver to control the output.<br><br>2) I can use log.PythonLoggingObserver to redirect to the standard logging module and use the standard logging formatting options and logging levels to control output (taking into account the caveats pointed out by Glyph).<br>
<br>My questions are as follows:&nbsp; <br><br>1)&nbsp; Are the above reasonable or am I missing something simpler?&nbsp; <br><br>2) When adding a LoggingObserver I am left with the LoggingObserver initialized by twistd.&nbsp; I can supress this with -l /dev/nul but it seems better to eliminate it completely.&nbsp; I guess I could just clear the ,observers property of the theLogPublisher singleton put that seems like an implementation detail.&nbsp; Again,&nbsp; am I missing something?&nbsp; Is there a way to tell twistd to let me set up my logging manually?<br>
<br>Note,&nbsp; I am using version 8.1.<br><br><br>Thanks,<br><br><br>Shawn Church<br><br>