[Twisted-Python] Custom log observer (was Re: Names DNS Client too chatty)
exarkun at twistedmatrix.com
exarkun at twistedmatrix.com
Mon Jan 24 12:30:21 MST 2011
On 06:25 pm, jaroslaw.fedewicz at gmail.com wrote:
>
>It would surely be nice to have a logger which flushes out, say, every
>2000 messages or every few seconds, whichever comes first (it would be
>a lot more filesystem efficient), suitable if you have a freaking lot
>of events, you need to log them all and you are not stock broker (in
>which case integrity really prevails over speed) or you have the
>integrity taken care about elsewhere (say it's in a postgresql database
>with good settings).
>
>The sad thing is that I haven't figured out how to make my own logger,
>how to tell everything to use it and how to shut irrelevant server
>parts up without hacks. Maybe folks refactoring the documentation will
>come up with something.
http://twistedmatrix.com/documents/current/core/howto/logging.html
should answer at least a couple of those questions.
Jean-Paul
More information about the Twisted-Python
mailing list