Removing default ConsoleHandler from Logger

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


Date: Fri, 30 Jan 2004 14:57:50 -0600

Hi,

how do I remove the default ConsoleHandler (from jre properties) from a
newly created Logger?

I thought I could loop through the handlers of the logger and remove the
ConsoleHandler, but the Logger has no Handlers returned by the getHandlers
method.

I don't want to change the properties of the jre.

Thanks in advance

Colin



Relevant Pages

  • Re: Logger?
    ... Knute Johnson wrote ... > When I create a Logger it appears to have a ConsoleHandler already ... Remember to look among parent handlers too. ...
    (comp.lang.java.programmer)
  • Re: Removing default ConsoleHandler from Logger
    ... > how do I remove the default ConsoleHandler (from jre properties) from a ... > I thought I could loop through the handlers of the logger and remove the ... > ConsoleHandler, but the Logger has no Handlers returned by the getHandlers ...
    (comp.lang.java.programmer)
  • Logger?
    ... When I create a Logger it appears to have a ConsoleHandler already attached but if I get a list of handlers it is not there. ... Knute Johnson ...
    (comp.lang.java.programmer)
  • 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)