Google-RestApi
view release on metacpan or search on metacpan
t/lib/Test/Utils.pm view on Meta::CPAN
}
return;
}
# this is for etc/log4perl.conf to call back to get the log file name.
sub log_file_name {
my $logfile = shift or die "No log file passed";
$logfile .= ".log";
my $username = ($ENV{LOGNAME} || $ENV{USER} || getpwuid($<)) or die "No user name found";
my $tmpdir = File::Spec->tmpdir();
my $logdir = File::Spec->catfile($tmpdir, $username);
make_path($logdir);
my $logpath = File::Spec->catfile($logdir, $logfile);
warn "File logging will be sent to $logpath\n";
return $logpath;
}
# call these to temporarily toggle debug-level logger messages around particular tests so you
( run in 0.325 second using v1.01-cache-2.11-cpan-8d75d55dd25 )