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
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
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