<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 2017-02-15 16:06, Abe Dillon wrote:<br>
</div>
<blockquote
cite="mid:CAKr=oZtgX+jbC-uRgtnFy8WHfduxRPcWmDN_XZgwGFFh-7hqeg@mail.gmail.com"
type="cite">
<div dir="ltr"><font color="#741b47">On 15.02.2017, 20:39 Kyle
Lahnakoski wrote:<br>
</font>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span
style="font-size:12.8px"><font color="#741b47">Log "levels"
never made sense to me; how can a single dimension be
useful substitute for a number of binary switches? With
log "levels", you either don't have enough logging, or you
drown in too much logging (or you manage a number of
loggers, which is worse than logging switches).</font></span></blockquote>
<div><br>
</div>
<div>Again, isn't that what Filters are for? I mean the
documentation says:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"><font face="arial,
helvetica, sans-serif" color="#274e13"><code
class="gmail-docutils gmail-literal"
style="background-color:rgb(236,240,243);padding:0px
1px;border-radius:3px;text-align:justify"><span
class="gmail-pre">Filters</span></code><span
style="text-align:justify"> can be used by </span><code
class="gmail-docutils gmail-literal"
style="background-color:rgb(236,240,243);padding:0px
1px;border-radius:3px;text-align:justify"><span
class="gmail-pre">Handlers</span></code><span
style="text-align:justify"> and </span><code
class="gmail-docutils gmail-literal"
style="background-color:rgb(236,240,243);padding:0px
1px;border-radius:3px;text-align:justify"><span
class="gmail-pre">Loggers</span></code><span
style="text-align:justify"> for more sophisticated
filtering than is provided by levels.</span> </font></blockquote>
<div><br>
</div>
</div>
</div>
</blockquote>
<br>
You are right that Python logging infrastructure can deal with logs
at a finer grain, but the code required to do it is more verbose
than logical switches, and may also be non-local, and still does not
solve the expensiveFunction() problem.<br>
</body>
</html>