This is why I did what I did, because I couldn't figure it out either. I did find issue 5421 at python.org which is where I got the idea for the code change.
Joe On Jul 14, 2010, at 12:35 PM, Peter Otten wrote: > Vinay Sajip wrote: > >> On Jul 14, 3:21 pm, Joe Hughes <jwhug...@hughesconcepts.com> wrote: >>> Thanks for the information. I sent an email to the maintainer and got >>> some information that helped me continue with this. My solution was to >>> change line 785 of handlers.py to >>> >>> self.socket.sendto(bytes(msg, 'ascii'), self.address) >>> >>> After I made the change, I got exactly what I was looking for. >>> >> >> What I suggested was this: >> >> http://plumberjack.blogspot.com/2010/07/using-custom-formatter-to-deal- > with.html >> >> Of course your change may work for you, but it's not a change we can >> have in the stdlib - since not everyone will be using ASCII for >> everything. > > It's not obvious to me how you'd adapt that code to work with python3.1 and > the SysLogHandler. Can you give some details? > > Peter > > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list