File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Verbose Logging in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Verbose Logging in Java" Watch "Verbose Logging in Java" New topic

Verbose Logging in Java

K Nally

Joined: Sep 30, 2003
Posts: 13
Is there a way in Java to display everything that is going on during the execution of a Java program? I have a Java program that is accessing a 3rd party's APIs and I'm encountering non-Java errors. Is there a verbose debugging command?
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Sure. Run your program using jdb rather than java. That's the command line debugger. You can step through your whole program line by line.
As for "logging", there's only what you put into your java program. You'd best check your 3rd party library's documentation to see if there's any parameters you can give it to get more verbose output. Unless they gave you the source code, even a visual debugger like jswat isn't going to be much help.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Verbose Logging in Java
It's not a secret anymore!