From: Richard B. <ri...@at...> - 2009-05-20 16:52:39
|
Hi all I am trying to capture unhandled exceptions that are sent to STDERR, e.g. for example the following could would give such an error my $test = 'foo'; if ($test == 55) { } gives Argument "foo" isn't numeric in numeric eq (==) at.... I can catch this using stealth as loggers outlined in http://search.cpan.org/~mschilli/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#So me_module_prints_messages_to_STDERR._How_can_I_funnel_them_to_Log::Log4p erl? but the example assumes you are using the "easy" configuration method. The question I have is can I do a similar thing but use an external configuration file for log4perl? I have tried but failed so would appreciate any guidance? Thanks Richard |