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;
}

# used for building/reading exchanges for unit testing. finds the calling



( run in 1.363 second using v1.01-cache-2.11-cpan-39bf76dae61 )