Re: using the sysloghandler class

2007-04-19 Thread Vinay Sajip
On Apr 18, 11:42 pm, "Nicholas Milkovits" <[EMAIL PROTECTED]> wrote: > Hello all, > > I have a small script which attempts to write to the user.log syslog > > importlogging,logging.handlers > > logger =logging.getLogger('bender') > handler > =logging.handlers.SysLogHandler(('localhost',logging.han

using the sysloghandler class

2007-04-18 Thread Nicholas Milkovits
Hello all, I have a small script which attempts to write to the user.log syslog import logging, logging.handlers logger = logging.getLogger('bender') handler = logging.handlers.SysLogHandler(('localhost', logging.handlers.SYSLOG_UDP_PORT), logging.handlers.SysLogHandler.LOG_USER) formatter = log