[Twisted-Python] [PATCH] make syslog work
Itamar Shtull-Trauring
itamar at itamarst.org
Sat Aug 2 09:07:15 MDT 2003
On Sat, 2 Aug 2003 17:27:50 +0300
Tommi Virtanen <tv at twistedmatrix.com> wrote:
> 2) rewrite twisted.python.syslog to save it from bitrot,
> I don't think it could have worked at all. To avoid
> code duplication, refactor twisted.python.log a bit;
> we don't want twistedy time stamps in syslog, but we
> want rest of the nice things.
Given that we now have a better logging API, syslog should indeed be
changed, but slightly differently. Instead of making syslog look like a
file, why not use the logging API directly? That is to say, add a
SyslogObserver, and then
twistef.python.log.addObserver(SyslogObserver().notify). notify() will
be called with the low-level dict of the log messages, which would give
you a lot more flexibility.
--
Itamar Shtull-Trauring http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting
More information about the Twisted-Python
mailing list