From: Lee G. <LGo...@UK...> - 2007-08-17 07:32:34
|
From: Mike Schilli [mailto:m...@pe...] > On Thu, 16 Aug 2007, Lee Goddard wrote: >=20 > > Sometimes I need to just see the logging from a specific > > method/subroutine/function. > > > > I realize I can change the log levels within that block of code, but > > it would be convenient to be able to say > > log4perl.category.bar.twix.eat to just see the logging from > > Bar::Twix's 'eat' method. Would it be a bad idea to incorporate this? >=20 > Does this third-party CPAN module solve the problem? >=20 > http://search.cpan.org/dist/Log-Log4perl-AutoCategorize/ It may well do, thanks Mike: I'll try it.=20 Does look a little heavy, though, but I will wait to see if I need this functionality again before sub-classing L4p or supply patches that maybe nobody else will ever need! Cheers Lee |