Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-09-01 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (299 votes), past polls