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

Win a copy of Head First Android this week in the Android forum!
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: 9126

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]
Don't get me started about those stupid light bulbs.
subject: Verbose Logging in Java
jQuery in Action, 3rd edition