in reply to Re: log4perl run from within another package not firing messages sent through email
in thread log4perl run from within another package not firing messages sent through email

Does anyone know why I needed the "buffered" property when I run this code from inside a package and not when run from within "main"?

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

  • Comment on Re^2: log4perl run from within another package not firing messages sent through email

Replies are listed 'Best First'.
Re^3: log4perl run from within another package not firing messages sent through email
by 1nickt (Canon) on Dec 04, 2015 at 12:01 UTC

    Have you tried examining your Appender object with Data::Dumper or similar to see what the value of the buffered attribute is when you create it from within your main script? At least if you knew whether it was being similarly set to '0' you could narrow your search to 'why?' ...

    The way forward always starts with a minimal test.