|
From: Mathieu L. <mrd...@ya...> - 2002-09-24 01:59:34
|
Couldn't the interface be simpler?
In order to write one line of log, here is what I need to
do:
package Groceries::Food;
use Log::Log4perl qw(get_logger);
...
my $logger = get_logger("Groceries::Food");
...
$logger->debug("New food: $what");
Shouldn't I just be allowed to do something like this:
package Groceries::Food;
use Log::Log4perl::EZ;
...
DEBUG("New food: $what"); # Or Debug() or debug()
In which case, the argument to get_logger() is guessed to
be the name of the current package.
I like the philosophy of the package, but calling
get_logger in every single functions that logs is just a
waste.
-Mathieu
__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
|