Re: [Tutor] More logging probs ...

2007-11-17 Thread dave selby
OK so to condense the problem the following works at LOG_INFO default priority ... def log(self, msg, priority): syslog.openlog(self.ident , syslog.LOG_PID) syslog.syslog('testing message') syslog.closelog() But as soon as I try to set a priority API syslog docs, it fa

Re: [Tutor] More logging probs ...

2007-11-17 Thread Kent Johnson
dave selby wrote: > Im having a bad day. The logging module refused to send anything to > syslog no matter what I did, so discovering the syslog module & > thought, for what I need I will write a simple class to do the job. > > class kmotion_logger: > > def __init__(self, ident, min_priority