I have this as my 404 error page...
[code:1]The page that you requested (
<!--#echo var="REQUEST_URI" -->) isn't here.
Your IP Address is:<!--#echo var="REMOTE_ADDR" -->
Your Browser Version is:<!--#echo var="HTTP_USER_AGENT" -->
This Site is:<!--#echo var="HTTP_HOST" -->
<!--
-->
[/code:1]
That outputs all of that info. It is an shtml file, which I know little about. I would guess that there is pre-processing server side that must be done.
To see how that comes out, just go to
http://www.litelinux.net/faskdjl That page doesn't exist, and will bring up the 404 error page.
I would imagine that you could use the IP Adress directive to get the info you need. This would display... not log. You should probably still have a firewall doing logging.