[Python-ideas] Efficient debug logging
barry at barrys-emacs.org
Fri Feb 17 18:05:08 EST 2017
> On 16 Feb 2017, at 21:03, Abe Dillon <abedillon at gmail.com> wrote:
> 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.
Its not lots of levels its lots of categories.
I did add one level, INFOHEADER, but not for debug.
It you are interested in what I did you could look at this project:
Have a look at:
Then look at almost any module and see the use of the _debug calls.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas