I'd like to avoid logging some missing files (that gives 404) into error.log. I'm using Apache2.
I want to do this on Eclipse update site for my plugin. Problem is that Eclipse P2 code tries to access its metadata files like content.xml, content.jar, digest.zip and 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 184.108.40.206] 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 better solution.
I was thinking about tagging these requests with SetEnvIf directive, and skipping error log for tagged requests, but ErrorLog directive doesn't support that :-(
Any other ideas?