- IMPORTABLE SUBROUTINES
- SEE ALSO
Stow::Util - general utilities
use Stow::Util qw(debug set_debug_level error ...);
Supporting utility routines for Stow.
Outputs an error message in a consistent form and then dies.
Sets verbosity level for
Sets testmode on or off.
Logs to STDERR based on
$level is the minimum verbosity level required to output
$msg. All output is to STDERR to preserve backward compatibility, except for in test mode, when STDOUT is used instead. In test mode, the verbosity can be overridden via the
TEST_VERBOSE environment variable.
- 0: errors only
- >= 1: print operations: LINK/UNLINK/MKDIR/RMDIR/MV
- >= 2: print operation exceptions
e.g. "_this_ already points to _that_", skipping, deferring, overriding, fixing invalid links
- >= 3: print trace detail: trace: stow/unstow/package/contents/node
- >= 4: debug helper routines
- >= 5: debug ignore lists