This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 666
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
Similar Threads
Log4j configuration question
How to get Client/User's IP who is accessing the aaplication?
LOG4j-log files
user object across multiple web Context