summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-16 13:36:31 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-16 13:36:31 +0100
commitcf058083aa20a578b851f2ce18eb5be855ee582a (patch)
treeed6d5ad14a0581851148c71132ac1c5d3655a493
parentf8242557cf4683fe1ea42ec55594b1dd0ee01194 (diff)
downloadpython-tracing-cf058083aa20a578b851f2ce18eb5be855ee582a.tar.gz
Add justification for tracing to exist to README.
-rw-r--r--README7
1 files changed, 7 insertions, 0 deletions
diff --git a/README b/README
index e0de1ca..8077e69 100644
--- a/README
+++ b/README
@@ -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.
+
Legalese
--------