From: Mike S. <m...@pe...> - 2007-03-07 05:49:49
|
On Tue, 6 Mar 2007, Lev Lvovsky wrote: > when not using the easy_init methodology, is it possible to use the > convenience functions provided by it? > > Meaning, do I always necessarily have to get the logger object, and > $logger->warn('...'), is there any way I could be lazy and just WARN > ('...') via the logger that's implied by my package name? Absolutely. As long as you're using use Log::Log4perl qw(:easy); in your current namespace, DEBUG(), WARN(), INFO(), et. al. will be available. It's really independent of using easy_init() vs. init(). If you need something simple, use easy_init(). If it's more complicated, init() is appropriate. The convenience functions will be available regardless, and at no extra cost: http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#f625e -- Mike Mike Schilli m...@pe... > > thanks! > -lev > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > log4perl-devel mailing list > log...@li... > https://lists.sourceforge.net/lists/listinfo/log4perl-devel > |