eg.
SetEnvIfNoCase Request_URI ".*\.html" !NOLOG
CustomLog /var/log/httpd/main.log j_common env=!NOLOG