From: Andy T. <an...@ha...> - 2004-02-06 11:04:27
|
Ian Bicking wrote: > On Feb 5, 2004, at 6:17 PM, Peter Gebauer wrote: > [snip] >>> >>> >>> Yeah, that'd be cool. Is there a logging module backported to 2.2? >> >> >> No, I think it's not. I can't find it in the 2.2 docs anyway and >> there's no >> python logging extra module in Debian. (good measurement, hehe) >> >> Are we trying to be 2.2 compatible? Then SQLObject could include a >> wrapper >> which implements the logger, handler, formatter and record. >> >> I can write something and send a patch for all of it. If you run 2.2 the >> wrapper is used, if 2.3 then logging module is used. > > > I checked online and found something at > http://www.red-dove.com/python_logging.html -- I think it's the module > the 2.3 logging module was based on. There's a good chance that the > logging.py distributed with 2.3 could be dropped into 2.2 as well. > > -- > Ian Bicking | ia...@co... | http://blog.ianbicking.org > > That *is* the code the 2.3 logging module cames from, and it has the same interface. I use it quite happily with 2.2, works like a charm. Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |