I am trying to build application with the help of Perl. The application consists of Thread::Pool
and Log4Perl
packages from perl.
When i exclude package Thread::Pool
logging works.
But when i include it it gives me error as following:
ERROR: can't load appenderclass 'Log::Log4perl::Appender::File'
Could not find file for 'Log::Log4perl::Appender::File' at C:/Perl/site/lib/load.pm line 214.
Working Code :
# use Thread::Pool;
use Log::Log4perl;
my $log_conf = 'LoggingConfiguration.conf';
Log::Log4perl::init($log_conf);
my $logger = Log::Log4perl->get_logger();
$logger->info(" Info Msg ");
But if i remove comment as
use Thread::Pool;
it gives above error
What is the exact reason for this to happen? How to avoid this error?