in reply to Leave log4perl debug code in cpan module?

Hello nysus,

Have you considered Log::Any? It can log to STDERR or just skip logging by default, yet if the user of your module wants Log4perl, Log::Any will work with it just fine.

I'd say it's a bad idea to impose Log::Log4perl upon your future users. It is a very good logger, but not the only one out there.

  • Comment on Re: Leave log4perl debug code in cpan module?

Replies are listed 'Best First'.
Re^2: Leave log4perl debug code in cpan module?
by nysus (Parson) on Jan 29, 2018 at 22:28 UTC

    No, but I'll read up on it. Looks interesting. Thanks.

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