in reply to Cooperating with Apache Log Levels
use Apache::Log (); my $rlog = $r->log; $rlog->debug("You only see this if `LogLevel' is set to `debug'"); [download]