<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#330033" bgcolor="#ffffff">
On 12/9/2010 8:29 PM, Gregory P. Smith wrote:
<blockquote
cite="mid:AANLkTik54r_SwZP_Lvx_C0vYmqjmf364MZ0s3CNC=y=h@mail.gmail.com"
type="cite">
<div>Exactly. All I ever recommend people do is:</div>
<div><br>
</div>
<div>import logging</div>
<div>...</div>
<div> logging.warn('doing something a bit odd.')</div>
<div>...</div>
<div> for x in thing:</div>
<div> logging.debug('working on %r', x)</div>
<div>...</div>
<div><br>
</div>
<div><br>
</div>
<div>And be done with it. If they are controlling their __main__
they'll probably want to call a common function to setup the log
message formatting and where it gets written to from there. </div>
</blockquote>
<br>
<br>
Greg -- can you flesh out that last line, to remove the need for my
parenthetical uncertainties below)?<br>
<br>
So with your warn and debug calls, and the "common function to setup
..." (whatever this is, and however often and from where it needs to
be called in a multi-module environment) at the top of the logging
manual, it might be more approachable.<br>
</body>
</html>