Is there a way for mod_rewrite to only log requests that it actually modifies? My log has jillions of entries like this:
pass through /my/logo.gif
bakedjake
6:10 pm on May 5, 2004 (gmt 0)
You can fudge with the directive "RewriteLogLevel". It should be 0 by default (which is what you want), but it may have been accidentially specified somewhere.
bryndyment
6:24 pm on May 5, 2004 (gmt 0)
My understanding from the mod_rewrite docs is that a RewriteLogLevel of "0" suppresses all logging. I'd like to only see log entries for which mod_rewrite intervened (but not the passthroughs).
I assume this is a common thing to want to do, no?
RewriteLogLevel 0.5
(A little joke.)
bakedjake
6:32 pm on May 5, 2004 (gmt 0)
Typically, I leave the level at zero, because (in my case) you can see what was rewritten from the access log.
What version of Apache are you on? 2.0.35 had some bugs with the rewrite module logging.
bryndyment
6:59 pm on May 5, 2004 (gmt 0)
I'm using Apache 1.3.29. Seems strange to me that of nine logging levels, there isn't one that only shows events where mod_rewrite intervened.