my dog learned polymorphism*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to maintain log files" Watch "how to maintain log files" New topic
Author

how to maintain log files

vinodheee kumar
Greenhorn

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: 667
What information do you want to log?
JDK (1.4 or above) has logging facilities.
Application servers have their own log files.


BJ - SCJP and SCWCD
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
Sheriff

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.

http://logging.apache.org/log4j/docs/index.html


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to maintain log files