A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-July/046402.html below:

[Python-Dev] Logging with no handlers configured

[Python-Dev] Logging with no handlers configured [Python-Dev] Logging with no handlers configuredWalter Dörwald walter at livinglogic.de
Thu Jul 22 12:26:37 CEST 2004
Vinay Sajip wrote:

> Currently, if the logging module is used with no handlers configured for a
> logger or its parents and you try to log events with that logger, a single
> message is printed to sys.stderr:
> 
> No handlers could be found for logger <logger name>
> 
> It has been suggested that this puts out a spurious message when, for
> whatever reason, a developer intentionally does not configure any
> handlers.
 > [...]
>
> All feedback gratefully received,

How about a LoggingConfigurationWarning and using warnings.warn()?
Then what should happen with the warning (ignore, print, raise
exception) could be configured via the warning framework.

Bye,
    Walter Dörwald

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4