Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-11-18
1
Medium Priority
?
1,053 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
vzilka earned 500 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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

660 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