Re: logging module question



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

mail = logging.handlers.SMTPHandler('mail.vw.com',
'charles.medcoff@xxxxxxxxx',
'charles.medcoff@xxxxxxxxx',
'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?

.



Relevant Pages

  • DECAD V2.44 (DOE, laser beams)
    ... Please note that the latest version of DECAD (coherent beams ... propagation and diffractive optics design) can freely be downloaded at: ... Prev by Date: ...
    (sci.optics)
  • error list best practice?
    ... I'm adding some better error reporting to my application. ... JOptionPane. ... Jeff ... Prev by Date: ...
    (comp.lang.java.gui)
  • Re: Skip
    ... >> I think you're probably talking about propagation and 'Skip distance' ... definitely be my first port of call. ... Prev by Date: ...
    (uk.rec.radio.cb)
  • Re: Proposal: Delphi VCL+RTL as open source
    ... >> propagation of statuses from Borland's internal system being counted ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Re: IE6 help index box
    ... > When I click on help and then click on "index" I get the error reporting ... > the page opens and there is a red x in the placeholder. ... Prev by Date: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)