Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1058
  • Last Modified:

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

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
gagaliya
Asked:
gagaliya
1 Solution
 
vzilkaCommented:
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

Industry Leaders: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now