my $log = Log::Log4perl->get_logger("SomeCategory); # -- or -- my $log = Log::Log4perl->get_logger("AnotherCategory); # Logging code looks the same, but no longer gets logged # to both places $log->info("connecting to database");