Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: log4perl and efficiency

by erwan (Sexton)
on Sep 12, 2011 at 19:03 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-25 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found