Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: log4perl and efficiency

by erwan (Sexton)
on Sep 12, 2011 at 19:03 UTC ( #925548=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($self->{logger}->is_trace()) { # for efficiency (not to compute th
    +e expression) 
                $self->{logger}->trace("total NbObsThis $i=$nbObservedThis
    +NGram->[$i]; nbObsAll $i=$nbObservedAllNGrams->[$i]; total=$totalObse
    +rvedAll; nbExpected $i=$nbExpectedThis[$i]; chisq = $chiSquare[$i]")
    }
    
  2. or download this
    if (!$self->{disableLogger} && $self->{logger}->is_trace()) { # test f
    +or efficiency (not to compute the expression) {
                $self->{logger}->trace("total NbObsThis $i=$nbObservedThis
    +NGram->[$i]; nbObsAll $i=$nbObservedAllNGrams->[$i]; total=$totalObse
    +rvedAll; nbExpected $i=$nbExpectedThis[$i]; chisq = $chiSquare[$i]")
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://925548]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2022-09-27 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (119 votes). Check out past polls.

    Notices?