Solved

how to write to weblogic log files using a servlet, servlet debugging

Posted on 2003-11-18
1
1,018 Views
Last Modified: 2013-12-10
Hello, I have a java servlet running on linux weblogic 6.1 that gets request from JSP and processes them. I like the servlet to write to the weblogic logfiles in the log directory. I tried System.out.println("message"), System.err.println("message")  etc none of them works. I know there is some simple built in comman to do it, just cant find it.

Also in general, is there any way(besides writing to log files) to debug servlets in weblogic WITHOUT using fancy tools like jbuilder. Since system.out.println doesnt seem to output anything, I have no way of putting in some debug messages.  

Thank you,

gaga
0
Comment
Question by:gagaliya
1 Comment
 
LVL 9

Accepted Solution

by:
vzilka earned 250 total points
Comment Utility
For good debugging make you sure do System.out.flush() after you do System.out.println().
Try the eclipse integration with WLS (not sure WLS 6.1 is supported). Download eclipse and a plug in called lomboz.

For using the weblogic log files directly, use the class NonCatalogLogger. I enclose a link to its JavaDoc: http://edocs.bea.com/wls/docs61/javadocs/weblogic/logging/NonCatalogLogger.html
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now