From: <dan...@sa...> - 2012-11-04 11:52:53
|
I can't see an API for fetching the category of a logger. Is there a reason for that? In particular, I'd like to make a "daughter" logger from an existing one. i.e. given my $logger = get_logger("com.sadinoff.hello"); . . . I'd like to say my $subLogger = $logger->get_daughter_logger("foobar") ...and have the category be "com.sadinoff.hello.foobar". I thought maybe I'd do get_logger($logger->getCategory() . ".foobar") ..but I don't see anything like either method above. I *could* just fetch $logger->{category}, but I doubt that would be supported. ——— Danny Sadinoff dan...@sa... |