Subject: | Logging |
Try as I might I cannot get any logging out. It's not that well documented beyond "look a Log::Any". This is the basic idea of my code that uses CHI:
....
use CHI;
use Log::Any::Adapter;
.....
Log::Log4perl::init("/path/to/foo.l4pconf");
Log::Any::Adapter->set( { category => 'foo' }, 'Log4perl');
my $cache = CHI->new(......);
gets/sets
exit;
I get output from everything else, but nothing from CHI. In desperation I tried:
Log::Any::Adapter->set('Stdout');
but still nothing.
An example in the documentation would help a lot.
Thanks.
By the way CHI::Stats *does* print something so I have everything else set-up.