Re: Syslog

2007-08-23 Thread Michael Bentley
On Aug 20, 2007, at 4:56 PM, greg wrote: > Hi All, > > Could anyone tell me how I could syslog to a specific log (e.g. /var/ > log/daemon.log, /var/log/syslog.log...)? > # something like this: import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(lev

Re: Syslog

2007-08-20 Thread Hamish Moffatt
greg wrote: > Could anyone tell me how I could syslog to a specific log (e.g. /var/ > log/daemon.log, /var/log/syslog.log...)? > > Thanks very much in advance! It's up to your syslogd to route messages into particular files, based on their facility and/or priority. Check out /etc/syslog.conf or

Re: syslog best practices -- when to call closelog?

2006-07-11 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, J Rice <[EMAIL PROTECTED]> wrote: > >I have a question: > >When should syslog.closelog() be called? I have a daemon that spends >most of its time asleep and quiet, but writes messages to the mail log >when active. Should I open the log at the start and keep it open