Solved

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

Posted on 2003-11-18
1
1,024 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 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

14 Experts available now in Live!

Get 1:1 Help Now