Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Proper way to create packages and re-usable code?

by karlgoethebier (Abbot)
on Feb 15, 2016 at 20:33 UTC ( #1155290=note: print w/replies, xml ) Need Help??


in reply to Proper way to create packages and re-usable code?

Some thoughts in a hurry: perhaps it might be a good idea to take a look at Log::Any?

From the friendly manual:

Getting a logger

The most convenient way to get a logger in your module is:
use Log::Any qw($log); our $log = Log::Any->get_logger;

Please see ibidem for details.

IMHO Log4j is fubar - as well as Log::Log4perl is.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-05-25 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (91 votes). Check out past polls.

    Notices?