I'd like to avoid logging some missing files (that gives a 404) into the Apache2 error log.
I want to do this on an Eclipse update site for my plugin. Problem is that the Eclipse P2 code tries to access its metadata files like content.xml, content.jar, digest.zip and a few others, which are not available on my site. When P2 finds this out, it finally reaches for site.xml, which I provide. All in all, everything works fine ... but I have tons of lines like:
[Mon Jul 06 21:46:46 2009] [error] [client 22.214.171.124] File does not exist: ...htdocs/stable/content.jar
in my error.log file, which doesn't help me very much.
One solution that comes to my mind is to let Apache log through grep (via pipe-logging), but I am looking for a better solution.
I was thinking about tagging these requests with SetEnvIf directive, and skipping error log for tagged requests, but the ErrorLog directive doesn't support that.
Any other ideas?