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/2002-March/021561.html below:

[Python-Dev] Re: PEP 282 comments

[Python-Dev] Re: PEP 282 comments [Python-Dev] Re: PEP 282 commentsVinay Sajip vinay_sajip@red-dove.com
Thu, 21 Mar 2002 13:20:28 -0000
[Neal Norwitz]
> You could have the logging methods return an int/bool,
> 1 if succesfully logged, 0 on failure.  Let the caller
> decide what to do.  You could even return a failure
> object or None.  The failure object would contain
> (or be) the exception/problem.
This violates the principle that logging should be "set and forget". Having
the logger fail silently has, in past experience, caused fewer problems than
having to handle errors from the logging system - yet another headache for
the developer!
Regards

Vinay




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