Solved

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

Posted on 2003-11-18
1
1,034 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
ID: 9776987
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jBoss vs. other App Servers 11 397
Is vFabric an PaaS 1 146
Comet channel best practices and HA 6 53
listing all functions in JavaScript 19 227
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

685 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