use if Log::Log4perl->get_logger->is_debug, ...; # Then run your program my_program.pl --verbose my_program.pl -v my_program.pl --debug my_program.pl -d my_program.pl --quiet my_program.pl -q my_program.pl --debug my_program.pl --debug MyModule my_program.pl --debug MyModule,MyOtherModule --debug Foo