use strict; use warnings; use Log::Log4perl; my $log_conf1 = <init(\$log_conf1); Log::Log4perl->eradicate_appender("Screen1"); my $log = Log::Log4perl->get_logger; $log->debug('this is a test');