Removing default ConsoleHandler

From: Colin Foulkes (cfoulkes_at_hotmail.com)
Date: 01/30/04


Date: 30 Jan 2004 12:54:03 -0800

Hi,

How do I create a logger and stop this logger from using the standard
(default) ConsoleHandler, without changing the overall logging
properties for my jre.

I've thought of looping through the Handlers and deleting them, when
the logger is created, but there are no handlers associated with the
logger when it is created.

Thanks
in advance

Colin



Relevant Pages

  • Re: A new way to configure Python logging
    ... post about your usage of logging. ... I usually register a logger 'foo' within the application and one logger ... you need to do programmatic configuration anyway. ... so that it is easy to just add multiple handlers for various levels to ...
    (comp.lang.python)
  • Re: A new way to configure Python logging
    ... I used that particular level for logging within a unit test ... you need to do programmatic configuration anyway. ... logger* to process incoming LogRecords. ... The Handlers will usually employ elaborate filtering, ...
    (comp.lang.python)
  • Re: Logging: how to suppress default output when adding handlers?
    ... But if any of my code calls a logger ... thelogging ... or remove it when I 'm setting up my handlers? ... Configure the logging system yourself before any logging call is ...
    (comp.lang.python)
  • RE: 0x8024402c error HELP!
    ... > descriptor. ... > logger. ...
    (microsoft.public.windowsupdate)
  • Logging with no handlers configured
    ... logger or its parents and you try to log events with that logger, ... No handlers could be found for logger ... logging or configure any handlers, the spurious message should not be ... the logging system will not give any notification. ...
    (comp.lang.python)