![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Perl::Critic policy for common Log::Log4perl mistakeby andreas1234567 (Vicar) |
on Nov 07, 2011 at 16:59 UTC ( #936543=perlquestion: print w/replies, xml ) | Need Help?? |
andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:
I'm looking for a Perl::Critic policy related to Log::Log4perl. The policy should require every logging statement to be surrounded by a conditional testing for the given log level, as shown here. Running Devel::NYTProf has shown that this code, as noted by the Log::Log4perl module's author, can have a significant negative impact on performance.
Does such a policy exist? If not, are there policies that are similar that I can base this new one on?
-- No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]
Back to
Seekers of Perl Wisdom
|
|