SetEnvIfNoCase Request_URI "^/string to exclude/" drop
and then between and
CustomLog /var/log/httpd/www.mydomainname.com-access_log combined env=!drop