Add Logging at Class Load Time with Java Instrumentation
Add Logging at Class Load Time with Java Instrumentation
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 the data that was being processed at the time of failure.
Read More:
http://blogs.sun.com/CoreJavaTechTips/entry/add_logging_at_class_load
Thanks