I wish I could do something like this:
$logger1 = get_logger("C1"); $logger1->debug("debug1!"); $logger2 = get_logger("C1", "C2"); $logger2->debug("debug2!");
"debug2" should only be printed if C1 and C2 is at DEBUG level. But "debug1" should be printed regardless of C2 setting. So basically I want a multiple category mechanism. I want to print out variable dumps in a function in a module but only if I enable debugging "for that module" (=C1) and I enable "variable dumping" (=C2). I sometimes even want to single out debugging setting "for only that function" (=C3).
In reply to Log4perl "multiple categories"? by dgaramond2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |