NAME

TaskForest::Logs - Functions related to logging

SYNOPSIS

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