<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div><br></div><div>On 16 Feb 2017, at 21:03, Abe Dillon <<a href="mailto:abedillon@gmail.com">abedillon@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div><div>I personally don't see why you can't use floats for log levels, but I'm interested to know how people are using logs such that they need dozens of levels. That, however; is tangential to the discussion about conditional execution of an expensive function.</div></div></div></blockquote><br><div>Its not lots of levels its lots of categories.</div><div>I did add one level, INFOHEADER, but not for debug.</div><div><br></div><div>It you are interested in what I did you could look at this project:</div><div><br></div><div><a href="https://github.com/barry-scott/scm-workbench">https://github.com/barry-scott/scm-workbench</a></div><div><br></div><div>Have a look at:</div><div><br></div><div><a href="https://github.com/barry-scott/scm-workbench/blob/master/Source/Scm/wb_scm_debug.py#L12">https://github.com/barry-scott/scm-workbench/blob/master/Source/Scm/wb_scm_debug.py</a></div><div><a href="https://github.com/barry-scott/scm-workbench/blob/master/Source/Common/wb_debug.py">https://github.com/barry-scott/scm-workbench/blob/master/Source/Common/wb_debug.py</a></div><div><br></div><div>Then look at almost any module and see the use of the _debug calls.</div><div><br></div><div>Barry</div><div><br></div><div><br></div><div><br></div><div><br></div></body></html>