TaskForest::LogDir - Functions related to today's log directory
use TaskForest::LogDir; my $log_dir = &TaskForest::LogDir::getLogDir("/var/logs/taskforest"); # $log_dir is created if it does not exist
If you're just looking to use the taskforest application, the only documentation you need to read is that for TaskForest. You can do this either of the two ways:
perldoc TaskForest
OR
man TaskForest
This is a simple package that provides a location for the getLogDir function that's used in a few places.
Usage : my $log_dir = TaskForest::LogDir::getLogDir($root) Purpose : This method creates a dated subdirectory of its first parameter, if that directory doesn't already exist. Returns : The dated directory Argument : $root - the parent directory of the dated directory $tz - the timezone of the family, that determines the date $reload - If this is true, and we have a cached value, return the cached value Throws : "mkdir $log_dir failed" if the log directory cannot be created
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.