[Python-Dev] Re: PEP 282 comments (original) (raw)
Vinay Sajip vinay_sajip@red-dove.com
Thu, 21 Mar 2002 13:20:28 -0000
- Previous message: [Python-Dev] Re: PEP 282 comments
- Next message: [Python-Dev] Re: PEP 282 comments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[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
- Previous message: [Python-Dev] Re: PEP 282 comments
- Next message: [Python-Dev] Re: PEP 282 comments
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]