Add Logging at Class Load Time with Java Instrumentation by Thorbjørn Ravn Andersen 04/24/2008 When you're trying to analyze why a program failed, a very valuable piece of information is what the program was actually doing when it failed. In many cases, this can be determined with a stack trace, but frequently that information is not available, or perhaps what you need is information about