Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Logger object access to different modules

by perlpal (Scribe)
on Aug 17, 2010 at 07:39 UTC ( [id://855420]=perlquestion: print w/replies, xml ) Need Help??

perlpal has asked for the wisdom of the Perl Monks concerning the following question:

Hi PerlMonks,

I am writing a tool which basically consists of a driver file and a few modules.The modules are in effect implemented as Classes.

One of the modules is a Log Initializer module implemented using Log4Perl .This modules has a method that returns a logger object to the caller.

The driver file invokes this method. How can i make the logger object available to the other modules without explicitly passing it as a parameter in method calls to the corresponding modules ?

Appreciate your assistance!

  • Comment on Logger object access to different modules

Replies are listed 'Best First'.
Re: Logger object access to different modules
by murugu (Curate) on Aug 17, 2010 at 09:14 UTC
Re: Logger object access to different modules
by Anonymous Monk on Aug 17, 2010 at 08:28 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-19 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found