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
danny-logp...@sadinoff.com

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to