by sp00n » 14. September 2012 08:29
And in case anybody is wondering what's going on here (like I did), it seems that RewriteLog and RewriteLogLevel are not supported by Apache any more at all.
They're not deprecated like NameVirtualHost is currently, but instead completely unsupported and will prevent Apache from starting up. You're now supposed to use the 'LogLevel' directive with one of the 'trace1' to 'trace8' leves instead (I didn't see any rewrite entries with only 'debug').
An example would be 'LogLevel warn rewrite:trace8' if you want only warning messages for your modules, but all messages for your rewrite_mod.
There are two downsides of this changes:
a) There will be no error message whatsoever when you try to start Apache via the Control Panel. It will just immediately shut down again with a 'Return code: 0'. Also there will be no entry in the error log, no matter how high you set your LogLevel (in fact no error.log will be generated at all!).
Only if you start Apache from the command line, as seen in the original post or by using the apache_start.bat resp xampp_start.exe, you'll see the mentioned error message about an 'Invalid command'.
b) All your rewrite logs are now being added to your general (error) log file, which means you'll have to sort them out yourself. On Linux this may be relatively simply by using the tail -f error_log|fgrep '[rewrite:' command (see the documentation: http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#logging), however on Windows it is not.
I'm still trying to find a way to automatically save the rewrite logs to their own file again.