The Python library tracing helps with logging debug messages. It provides a couple of functions for logging debug messages, and allows the user to enable or disable logging for particular code modules.

It is sometimes practical to add a lot of debugging log messages to a program, but having them enabled all the time results in very large log files. Also, logging that much takes 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. The logging can that be left in the code, and only enabled when it is needed.

Licensed under the GNU GPL version 3 or later.

Status: in production use.

See also: