Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://913783]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-02-28 12:41 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (399 votes). Check out past polls.