Harvest::Debug - static debugging control | |
| |
DESCRIPTION | |
This package provides a debugging system for all of the Harvest modules. It is designed to be used in a static context (b<not> as an object), and provides global control of debugging through the use of tags. The user can set a list of tags for which debugging is allowed, and the programmer can use these by calling the Harvest::Debug::ok($tag) function.
| |
TAGS | |
The following debugging tags are permitted
| |
| Reaper progress | |
The tags below indicate the actions of the overall reaping process
| |
| Specific sections and modules | |
The following tags are used by specific modules or sections of the code
| |
FUNCTIONS | |
| |
| Harvest::Debug::ok($tag [,$level]) | |
Check to see if its OK to print a debug message of a given level, for a
given tag. If
| |
| Harvest::Debug::add($tag [,$level]) | |
Add debugging with a given tag, at a given level. Will die (throw an exception) if the given tag isn't allowed. | |