Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
Need info about servlet log file
vishnu mohan
Greenhorn
Posts: 14
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Posts: 1561
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hhhmmmm
try { queueConnectionFactory = (QueueConnectionFactory)jndiContext.lookup("java:comp/env/jms/MyQueueConnectionFactory"); queue = (Queue)jndiContext.lookup("java:comp/env/jms/QueueName"); } catch (NamingException e) { log("JNDI API lookup failed: " + e.toString()); }
I'm not going to be a Rock Star. I'm going to be a LEGEND!
--Freddie Mercury
Mandy Smith
Ranch Hand
Posts: 62
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can use Log4J from jakarta project. Here is the link to download.
http://jakarta.apache.org/log4j/docs/download.html
Poop goes in a willow feeder. Wipe with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Suppressing log statements inside SystemOut.log
Display log info from bean
Cannot start tomcat
Javadoc failed: java.io.IOException: CreateProcess
server.log showing INFO even after jboss-log4j.xml configured to ERROR mode. Please help
More...