Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: How would you extend MooseX::Log::Log4perl?

by spazm (Monk)
on Jul 11, 2011 at 22:12 UTC ( #913783=note: print w/ replies, xml ) Need Help??

in reply to How would you extend MooseX::Log::Log4perl?

I see what you're saying. The docs for MooseX::Log::Log4perl show a required BEGIN block to initialize Log::Log4perl.

package MyApp; use Moose; use Log::Log4perl qw(:easy); with 'MooseX::Log::Log4perl'; BEGIN { Log::Log4perl->easy_init(); }
Should one initialize Log::Log4perl and add the BEGIN block both in the application base class?

Comment on Re: How would you extend MooseX::Log::Log4perl?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2015-06-30 00:07 GMT
Find Nodes?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?

    Results (774 votes), past polls