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-August/048351.html below:

[Python-Dev] Proposed change to logging

[Python-Dev] Proposed change to logging [Python-Dev] Proposed change to loggingGuido van Rossum guido at python.org
Wed Aug 25 05:47:04 CEST 2004
> import logging
>  
> logging.basicConfig()
> logger = logging.getLogger("my.app")
> err = logger.getFileObject(logging.ERROR)
> dbg = logger.getFileObject(logging.DEBUG)
> ...
>  
> print >> err, "My logging message with %s" %
> "arguments"
> print >> dbg, "A message at %s level" % "debug"

Is this really a useful improvement?  It seems to save a few
keystrokes at most.  TOOWTDI etc.

--Guido van Rossum (home page: http://www.python.org/~guido/)
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