|
From: Mike S. <m...@pe...> - 2004-12-13 23:03:08
|
On Fri, 3 Dec 2004, Roger Yager wrote:
> I stumbled across your logging suite and have headed your advice by
> retiring my old debug routine. It has many features that I had only
> considered incorporating in the past. I love it!
Thanks :)
> However, I did encounter a problem when I tried to use ActiveState's
> perlapp compiler; turns out none of the modules specified in the
> configuration file (appenders/filters/layouts) were being compiled in since
> the 'require' was being handled via an eval. Therefore, I had to make the
> following modifications to get around it.
'eval' runs at runtime, not at compile time, that's why perlapp (or pp) won't pick them
up. The way to work around the problem: Just include 'use Foo::Bar' manually in
your script and perlapp will detect it and include it.
Here's the FAQ:
http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#9ea64
> * Modified Log::Log4perl::Config to handle abbreviated layout names
> outside of the call to Log::Log4perl::Util::module_available (see diff
> below).
I think it should be fixed in Log::Log4perl::Util::module_available if it's broken.
> * Modified Log::Log4perl::Util::module_available to always return
> true (see diff below).
Is this desirable in the general case?
As Kevin noted, we might need to check %INC first, I'll look into it.
-- Mike
Mike Schilli
m...@pe...
|