Re: unpickling derived LogRecord in python 2.7 from python2.6

2011-04-29 Thread ivdn...@gmail.com
On Apr 28, 9:22 am, Peter Otten <__pete...@web.de> wrote: > Vinay Sajip wrote: > > On Apr 27, 5:41 pm, Peter Otten <__pete...@web.de> wrote: > > >> The Problem is that as of Python 2.7logging.LogRecord has become a > >> newstyle class which is pickled/unpickled differently. I don't know if > >> the

Re: unpickling derived LogRecord in python 2.7 from python2.6

2011-04-28 Thread Peter Otten
Vinay Sajip wrote: > On Apr 27, 5:41 pm, Peter Otten <__pete...@web.de> wrote: > >> The Problem is that as of Python 2.7logging.LogRecord has become a >> newstyle class which is pickled/unpickled differently. I don't know if >> there is an official way to do the conversion, but here's what I've >

Re: unpickling derived LogRecord in python 2.7 from python2.6

2011-04-27 Thread Vinay Sajip
On Apr 27, 5:41 pm, Peter Otten <__pete...@web.de> wrote: > The Problem is that as of Python 2.7logging.LogRecord has become a newstyle > class which is pickled/unpickled differently. I don't know if there is an > official way to do the conversion, but here's what I've hacked up. > The script can

Re: unpickling derived LogRecord in python 2.7 from python2.6

2011-04-27 Thread Peter Otten
ivdn...@gmail.com wrote: > I have a service that runs in python 2.6.4. This service sends > LogRecords to a log monitoring app on my workstation running python > 2.7. The LogRecord class is derived: > > class LogRecord(logging.LogRecord): > > def __init__(self, name, level, fn, lno, user, ho

unpickling derived LogRecord in python 2.7 from python2.6

2011-04-27 Thread ivdn...@gmail.com
Hello all, I have a service that runs in python 2.6.4. This service sends LogRecords to a log monitoring app on my workstation running python 2.7. The LogRecord class is derived: class LogRecord(logging.LogRecord): def __init__(self, name, level, fn, lno, user, hostname, msg, args, exc_info,