It's not a secret anymore!
The moose likes Servlets and the fly likes how to maintain log files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to maintain log files" Watch "how to maintain log files" New topic

how to maintain log files

vinodheee kumar

Joined: Apr 26, 2006
Posts: 9
how can i maintain log files in servlet.
can you give me sample code
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 672
What information do you want to log?
JDK (1.4 or above) has logging facilities.
Application servers have their own log files.

We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The simplest way, in my opinion is to go get Log4j.
It's extemely powerful, efficient, flexible, and easy to use.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: how to maintain log files
jQuery in Action, 3rd edition