[Twisted-Python] Client/Server to stream text logfiles?
jrennie at gmail.com
Tue Sep 27 09:13:59 EDT 2011
Sounds like your project would be appropriate for twisted. You'll have the
easiest time if the reading and writing can each be implemented as a
separate process (independent of other jobs on the machines). Be sure to
read the following documentation:
Here are references you'll likely make use of:
I wonder if using a ProcessProtocol (
"tail -f" would be an option for monitoring changes to the log(s)? Though,
this may not be robust to failure (how to do you find the place where you
left off if the watching process dies unexpectedly?) I'm not very familiar
with twisted file-related code, but, the "fdesc" module might be useful:
Do any twisted experts have recommendations for monitoring changes to a
Victor, let me suggest that you explore whether twisted can satisfy all your
requirements before you start coding as it is can be nontrivial to use
twisted with non-twisted-friendly libraries.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python