• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to maintain log files

 
vinodheee kumar
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i maintain log files in servlet.
can you give me sample code
 
Bruce Jin
Ranch Hand
Posts: 672
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What information do you want to log?
JDK (1.4 or above) has logging facilities.
Application servers have their own log files.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic