This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Verbose Logging in Java" Watch "Verbose Logging in Java" New topic
Author

Verbose Logging in Java

K Nally
Greenhorn

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?
Thanks.
K
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8713
    
    6

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Verbose Logging in Java
 
Similar Threads
Class loaders
What classes are loaded?
init blocks example
A simple class
rmic and ClassNotFoundException