Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by spazm (Monk)
on Jul 11, 2011 at 22:12 UTC ( [id://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?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-19 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found