|author||Lars Wirzenius <firstname.lastname@example.org>||2011-05-16 13:36:31 +0100|
|committer||Lars Wirzenius <email@example.com>||2011-05-16 13:36:31 +0100|
Add justification for tracing to exist to README.
1 files changed, 7 insertions, 0 deletions
@@ -13,6 +13,13 @@ quite a bit of time.
This module provides a way to turn such debugging or tracing messages
on and off, based on the filename they occur in.
+A similar effect can be had by adding a `logging.Filter` that enables
+or disables log messages at the `DEBUG` level. The filter gets called
+by the `logging` library at the suitable time. However, this is about
+an order of magnitude slower for the case of running software in
+production mode, with all tracing turned off. That is the reason
+for the `tracing` library to exist.