Another 404 plugin

I need to combine the two ... but haven't had time. This one examines the incoming requests and prints the relevant global $wp vars to a log.