Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to maintain log files  RSS feed

 
vinodheee kumar
Greenhorn
Posts: 9
  • 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
  • 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
  • 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
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!