in reply to SOLVED: Testing output of logger output when dying

I don't know much about Log::Log4Perl, but can't you tell it to "log" into an array and then later in your test program inspect whether the array contains what you want?

  • Comment on Re: Testing output of logger output when dying

Replies are listed 'Best First'.
Re^2: Testing output of logger output when dying
by nysus (Parson) on May 20, 2016 at 15:45 UTC

    I was using logging to also test my script but it was unwieldy.

    I just discovered Test::Fatal which I think will help me solve this problem.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks