![]() |
![]()
| ![]() |
![]()
NAMESVN::S4::Debug - Allow debug messages to be easily switched on and off. SYNOPSISuse SVN::S4::Debug qw(INFO DEBUG is_debug); INFO ("informational message"); DEBUG ("debug message") if is_debug>=2; DESCRIPTIONSVN::S4::Debug functions are used instead of print, to allow control over all log messages work in a unified way. Debug levels can be controlled globally, or via a per-package $Debug variable that is created automatically. (However, it's more general to test the is_debug method in scripts, unless it is a very hot function.) Conventions for inside BugVise (but not required by this module) are that debug level 1 is for high-level messages for program debug. Levels 2 and above are for package debug, 2 being common, and above 2 being very verbose. METHODS
ENVIRONMENT
DISTRIBUTIONCopyright 2007-2016 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0. AUTHORSWilson Snyder <wsnyder@wsnyder.org> SEE ALSOLog::Log4perl
|