You might want to change the email address from webmaster@mysite.com to your own. Then try this:
use Log::Log4perl;
Log::Log4perl->init("log4perl.conf");
my $logger = get_logger("Foo::Bar");
$logger->info("this one's for mailer.log");
$logger->fatal("this one's for test.log and email");