Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: log4perl and efficiency

by erwan (Sexton)
on Sep 12, 2011 at 17:30 UTC ( [id://925522]=note: print w/replies, xml ) Need Help??


in reply to Re: log4perl and efficiency
in thread log4perl and efficiency

Unless I misunderstood, that's what I did. well, not using a function but the "if (condition) { log }" does the same thing, doesn't it?

Replies are listed 'Best First'.
Re^3: log4perl and efficiency
by Solo (Deacon) on Sep 12, 2011 at 17:44 UTC
    That's one approach. I was suggesting:
    $self->{logger}->trace( sub { "total NbObsThis $i=$nbObservedThisNGram +->[$i]; nbObsAll $i=$nbObservedAllNGrams->[$i]; total=$totalObservedA +ll; nbExpected $i=$nbExpectedThis[$i]; chisq = $chiSquare[$i]" } );
    which may be easier to bulk modify in source while maintaining existing log levels. (or not. YMMV.)

      ok, I didn't realize this advantage. thanks for the explanation!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-20 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found