Re: Issue with logging.config

2010-07-14 Thread Joe Hughes
Peter, 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

Re: Issue with logging.config

2010-07-14 Thread Vinay Sajip
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'),

Re: Issue with logging.config

2010-07-14 Thread Peter Otten
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,

Re: Issue with logging.config

2010-07-14 Thread Joe Hughes
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

Re: Issue with logging.config

2010-07-14 Thread Vinay Sajip
On Jul 14, 7:08 pm, Joe Hughes jwhug...@hughesconcepts.com wrote: 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. Perhaps you should read the messages for issue 7077, linked to by

Re: Issue with logging.config

2010-07-14 Thread Joe Hughes
Hi Vinay, I think I figured out what you are talking about after reading RFC 5424. I think this means that this code syslog.info(Status - + mcu_dict[pinged.ip] + is + status[pinged.status]) needs to become something like this BOM = 0xEFBBBF msg = str(BOM) + Status - +

Re: Issue with logging.config

2010-07-13 Thread Peter Otten
Joe Hughes wrote: I'm doing some work with logging.config and I'm running into an interesting situation. I've run this by python-help, but that didn't help so I thought I would send to the list. Here is the config file [loggers] keys=root,log,syslog [handlers] keys=console,log,syslog

Issue with logging.config

2010-07-08 Thread Joe Hughes
Hi Python Help: I'm doing some work with logging.config and I'm running into an interesting situation. I've run this by python-help, but that didn't help so I thought I would send to the list. Here is the config file [loggers] keys=root,log,syslog [handlers] keys=console,log,syslog