java web server log file

Hi,

I was wondering if anyone can show me a simple log file recorder for a simple java web server.

The log file should simply show the ip address of the client (which is reported from the client's browser) and the page that the client requested, date and time of the request. By calling this log file from your browser, the webserver should simply show these data in either html format or txt format.

Thanks

[433 byte] By [jnekoonama] at [2007-11-27 11:21:24]
# 1

See http://www.sevajug.org/, resources. The latest discussion shown on that page was on the use of log4j. What you need in your log4j config file is to write to two files. One is for general log4j messages. The second file just recieves the information you specified. The power point presentation shows a free utility to show the second log file in a browser remotely. However, be aware of security issues. If anyone can use this tool to access the log file, do you want them to see user's ip addresses, etc?

George123a at 2007-7-29 14:48:31 > top of Java-index,Java Essentials,Java Programming...