TaskForest::Logs - Functions related to logging
use TaskForest::Logs qw/$log/; &TaskForest::Logs::init($banner); # print $banner and initialize the logger # this will also tie stdout to $log->info() # and stderr to $log->error() # $log is a logger. See Log::Log4perl $log->debug("Debug message"); $log->info("Info message"); $log->warn("Warn message"); $log->error("Error message"); $log->fatal("Fatal message"); &TaskForest::Logs::resetLogs(); # This will delete the error file if it is empty, and also untie # STDOUT and STDERR
To install TaskForest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TaskForest
CPAN shell
perl -MCPAN -e shell install TaskForest
For more information on module installation, please visit the detailed CPAN module installation guide.