Need suggestions for logging to a file

imported_nautique

Senior member
Jul 14, 2004
346
0
0
In java, I need to write URL's to a file when my browser sends the request. I have tried the "Logger" and really don't understand that. So I went to using the FileWriter object and it works but my problem is that I need to append to the File. Anyone know of a better way or if I am doing it an ok way how to append to the file rather than overwrite the exsisting URL???

thanks
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
http://logging.apache.org/log4j/docs/index.html

More or less all you'll ever need :) Ok, that may be exagerating but log4j is the defacto standard logging toolkit in java. Using it is dead simple, the only help you might need is getting it configured as the documentation available on the internet isn't all that good.