Ok, so I've figured this out (see below),

    mail = logging.handlers.SMTPHandler('mail.vw.com',
                                       '[EMAIL PROTECTED]',
                                       '[EMAIL PROTECTED]',
                                       'Data Processing Error at
location: %s' % "Chuck's Desk")
    mail.setFormatter(logging.Formatter('%(asctime)s %(message)s'))
    ml = logging.getLogger('mail')
    ml.addHandler(mail)
    ml.propagate = 0  ## <---------------do this to turn off
propagation of error reporting

but now I'd like to understand the design rational behind having each
logger in the object hierarchy log the same output by default.  Anyone?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to