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 Need info about servlet log file 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 "Need info about servlet log file" Watch "Need info about servlet log file" New topic
Author

Need info about servlet log file

vishnu mohan
Greenhorn

Joined: Feb 01, 2002
Posts: 14
Hi,
How do u i write the exception info to a log file?
kindly give me a sample code for that.
Thanks and regards
Vishnu
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hhhmmmm


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Mandy Smith
Ranch Hand

Joined: Jun 26, 2001
Posts: 62
You can use Log4J from jakarta project. Here is the link to download.
http://jakarta.apache.org/log4j/docs/download.html
 
Don't get me started about those stupid light bulbs.
 
subject: Need info about servlet log file
 
Similar Threads
server.log showing INFO even after jboss-log4j.xml configured to ERROR mode. Please help
Javadoc failed: java.io.IOException: CreateProcess
Cannot start tomcat
Display log info from bean
Suppressing log statements inside SystemOut.log